Back to Codebase

Vulnerability Analysis Report

OpenCart Core v2.0.1.0

Scan ID: SCAN-OPENCART-CORE-HeM7hd • Hash: e6cb2a3c

Severity Score
High
Total Findings
5
Engine Version
ECOMGUARD-HYBRID-AST-1.5
Scan Duration
1.064s

Vulnerability Details

L57

Potential SQL Injection in AddressTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/AddressTest.php:57
Security Score:
94 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $customer = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE customer_id = 1")->row;
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L100

Potential SQL Injection in AddressTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/AddressTest.php:100
Security Score:
94 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $result = $this->db->query("SELECT * FROM " . DB_PREFIX . "address")->row;
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L135

Potential SQL Injection in AddressTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/AddressTest.php:135
Security Score:
94 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $result = $this->db->query("SELECT * FROM " . DB_PREFIX . "address")->row;
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L14

Potential SQL Injection in CustomerTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/CustomerTest.php:14
Security Score:
93 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $this->db->query("INSERT INTO " . DB_PREFIX . "customer_ip SET ip = '127.0.0.1', customer_id = 1");
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L26

Potential SQL Injection in CustomerTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/CustomerTest.php:26
Security Score:
93 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- $this->db->query("DELETE FROM " . DB_PREFIX . "customer");
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");