oop-inheritance-composition
Warn
Audited by Snyk on Feb 16, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W009: Direct money access capability detected (payment gateways, crypto, banking).
- Direct money access detected (high risk: 1.00). The skill includes a Strategy Pattern explicitly for payment processing: an IPaymentStrategy with a ProcessPayment(amount) method and concrete implementations named CreditCardPayment and PayPalPayment that "Process" money and return PaymentResult. The OrderProcessor uses the payment strategy to calculate totals and calls ProcessPayment(total), treating it as a real payment step. This is a specific, explicit financial execution capability (payment gateway/payment processing), not a generic API or UI automation.
Audit Metadata