Back to Codebase

Vulnerability Analysis Report

OpenCart Core v2.1.0.0

Scan ID: SCAN-OPENCART-CORE-UBvsA9 • Hash: 8f468c87

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

Vulnerability Details

L11

Potential SQL Injection in ActivityTest.php

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

Potential SQL Injection in AddressTest.php

CWE-89
File Location: tests/phpunit/opencart/catalog/model/account/AddressTest.php:13
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("INSERT INTO " . DB_PREFIX . "customer SET customer_id = 1, email = 'customer@localhost', `status` = 1, customer_group_id = 1, date_added = '1970-01-01 00:00:00', ip = '127.0.0.1'");
+ $this->db->query("SELECT ... WHERE field = '" . $this->db->escape($variable) . "'");
L29

Potential SQL Injection in AddressTest.php

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

Potential SQL Injection in AddressTest.php

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