Back to Codebase

Vulnerability Analysis Report

WordPress Core v2.2.2

Scan ID: SCAN-WORDPRESS-CORE-6o3362 • Hash: ccb09896

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

Vulnerability Details

L212

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:212
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
- $links = $wpdb->get_col("SELECT link_id FROM $wpdb->link2cat WHERE category_id='$cat_ID'");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L421

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:421
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
- $wpdb->query("DELETE FROM $wpdb->link2cat WHERE link_id = '$link_id'");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L22

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:22
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
- $other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author IN ($editable) AND post_author != '$user_id' ");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L128

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:128
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
- $wpdb->query ("UPDATE $wpdb->categories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = '$category_parent', links_private = '$links_private', posts_private = '$posts_private' WHERE cat_ID = '$cat_ID'");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L263

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:263
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
- $post_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_author = $id");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));