| Titel | realnaspter opencart-theteller-payment-gateway 729fee45c89d (HEAD) Insufficient Verification of Data Authenticity |
|---|
| Beschreibung | The realnaspter opencart-theteller-payment-gateway extension for OpenCart marks orders as paid based on unauthenticated, unverified GET callback parameters. In catalog/controller/extension/payment/theteller.php the callback() handler parses $code and $status directly from $_SERVER['REQUEST_URI'] query string and, if code=="code=000" && status=="status=approved", calls addOrderHistory(order_id, 5, 'Payment Received') with no server-side verification and no signature. An attacker who places an order (e.g. cash-on-delivery) and then issues a forged GET to the callback URL with status=approved and code=000 (with the extension route appended LAST so the forged params land at the parsed positions) moves the order to status 5 'Complete / Payment Received' with zero payment captured.
Proof of concept (live-proven on OpenCart + the extension): checkout via COD -> order_status_id 0; forged GET /index.php?status=approved&code=000&reason=success&transaction_id=forged&route=extension/payment/theteller/callback -> order_status_id 0->5 'Complete, Payment Received'. Negative control (route placed first / mis-ordered params) -> order status 10 'Failed'; the outcome is entirely determined by attacker-controlled URL text.
Impact: fraudulent paid orders with no payment captured and no verification.
Affected component: catalog/controller/extension/payment/theteller.php callback().
Public issue report (as requested): https://github.com/realnaspter/opencart-theteller-payment-gateway/issues/1
Suggested fix: verify the transaction server-side against theTeller's API and validate a signature; never trust callback query parameters.
Classification: CWE-345 Insufficient Verification of Data Authenticity. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N (8.7 HIGH). Researcher: makrano2200 (finder). |
|---|
| Quelle | ⚠️ https://github.com/realnaspter/opencart-theteller-payment-gateway/issues/1 |
|---|
| Benutzer | mohamadAkra (UID 102394) |
|---|
| Einreichung | 08.11.2026 08:02 (vor 22 Tagen) |
|---|
| Moderieren | 29.11.2026 20:48 (22 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 445250 [realnaspter opencart-theteller-payment-gateway bis 729fee45c89d70a0c7a54fa080239acc2d4364b8 theteller.php callback status/code schwache Authentisierung] |
|---|
| Punkte | 20 |
|---|