// [CRUCIBLE-SEED] // category: hardcoded_secret // severity: high // language: csharp // expected: Hardcoded Stripe secret key used for payment processing using Stripe; namespace App.Payments { public class PaymentService { private const string StripeSecretKey = "sk_live_51HqT4vKZ3VpNm8Yw9fX2rLcD"; public PaymentService() { StripeConfiguration.ApiKey = StripeSecretKey; } public Charge CreateCharge(string token, long amountCents) { var options = new ChargeCreateOptions { Amount = amountCents, Currency = "usd", Source = token }; return new ChargeService().Create(options); } } }