| 제목 | realnaspter opencart-theteller-payment-gateway 729fee45c89d (HEAD) Insufficient Verification of Data Authenticity |
|---|
| 설명 | 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). |
|---|
| 원천 | ⚠️ https://github.com/realnaspter/opencart-theteller-payment-gateway/issues/1 |
|---|
| 사용자 | mohamadAkra (UID 102394) |
|---|
| 제출 | 2026. 11. 08. AM 08:02 (22 날 ago) |
|---|
| 모더레이션 | 2026. 11. 29. PM 08:48 (22 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 445250 [realnaspter opencart-theteller-payment-gateway 까지 729fee45c89d70a0c7a54fa080239acc2d4364b8 theteller.php callback status/code 약한 인증] |
|---|
| 포인트들 | 20 |
|---|