Summary
osCommerce's MultiSafepay payment success callback has an improper authentication flaw involving the customer_id argument. A remote attacker may be able to manipulate this value and cause the callback to treat a request as authenticated under certain conditions.
Affected context
The issue is reported in osCommerce versions up to 4.14.63493, in the actionSuccess function of lib/frontend/controllers/MultisafeController.php, which handles the MultiSafepay payment success callback. Risk depends on whether the callback is remotely reachable and whether the supplied customer identifier is trusted without adequate verification.
Exploit preconditions
- Attack surface: The remotely reachable MultiSafepay payment success callback
- Required access: The description does not specify whether authentication or other access is required
- Trigger point: Processing of the
customer_idargument byactionSuccess - Why exploitation may be possible: Manipulating the customer identifier can lead to improper authentication
Why this happens
The described behavior indicates that the callback may not adequately verify the identity or authorization associated with the supplied customer_id. Trusting an identifier without binding it to a validated payment event or authenticated context can result in CWE-287: Improper Authentication.
Potential impact
- An attacker may be treated as an authenticated customer
- Unauthorized customer-scoped actions could be possible, depending on callback behavior
- Related payment or account workflows could be affected if they rely on the callback's authentication decision
General mitigation guidance
Mitigation patterns include verifying customer identity and authorization independently of client-supplied identifiers, and binding callback processing to a trusted, verifiable payment event.
- Prefer server-validated identity and payment data over caller-controlled values
- Apply explicit authorization checks before customer-specific actions
- Reject inconsistent or unverifiable callback data
- Limit the callback's permissions and the actions it can perform
- Treat external callback inputs as untrusted and validate them against a strict schema
How teams detect issues like this
Review callback handlers for authorization decisions based on request parameters such as customer identifiers. Static analysis and code review can look for flows where externally supplied identity values reach customer-scoped operations without verification.
Monitor callback requests and resulting actions for mismatches between verified payment records, customer identities, and authorization context. Policy checks can require explicit server-side authorization before sensitive operations.

