Back to Codebase

Vulnerability Analysis Report

OpenCart Core v2.0.1.1

Scan ID: SCAN-OPENCART-CORE-QbwhRF • Hash: 1c1d4df5

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

Vulnerability Details

L31

Potential SQL Injection in ActivityTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/ActivityTest.php:31
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 . "customer_activity")->row;
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L28

Potential SQL Injection in AddressTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/AddressTest.php:28
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
- $this->db->query("DELETE FROM " . DB_PREFIX . "customer");
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L51

Potential SQL Injection in AddressTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/AddressTest.php:51
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) . "'");
L18

Potential SQL Injection in ActivityTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/ActivityTest.php:18
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_activity");
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L14

Potential SQL Injection in AddressTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/AddressTest.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) . "'");