SQL injection in opencart
The advisory, in context
This affects versions of the package opencart/opencart from 0.0.0. An SQL Injection issue was identified in the Divido payment extension for OpenCart, which is included by default in version 3.0.3.9. As an anonymous unauthenticated user, if the Divido payment module is installed (it does not have to be enabled), it is possible to exploit SQL injection to gain unauthorised access to the backend database. For any site which is vulnerable, any unauthenticated user could exploit this to dump the entire OpenCart database, including customer PII data.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases through 3.0.3.9 (inclusive)
No fix recorded for this interval.
19 explicitly affected versions
2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.0.0, 3.0.0.2, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.4, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 3.0.3.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "3.0.3.9"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.2.0.0",
"2.3.0.0",
"2.3.0.1",
"2.3.0.2",
"3.0.0.0",
"3.0.0.2",
"3.0.1.1",
"3.0.1.2",
"3.0.2.0",
"3.0.3.0",
"3.0.3.1",
"3.0.3.2",
"3.0.3.3",
"3.0.3.4",
"3.0.3.5",
"3.0.3.6",
"3.0.3.7",
"3.0.3.8",
"3.0.3.9"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21514
- https://github.com/opencart/opencart/commit/46bd5f5a8056ff9aad0aa7d71729c4cf593d67e2
- https://github.com/opencart/opencart
- https://github.com/opencart/opencart/blob/3.0.3.9/upload/catalog/model/extension/payment/divido.php%23L114
- https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266565