Back to Codebase

Vulnerability Analysis Report

WordPress Core v2.0.1

Scan ID: SCAN-WORDPRESS-CORE-bJuXfN • Hash: 632cee94

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

Vulnerability Details

L224

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:224
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->links WHERE link_owner = $id");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L324

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:324
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
- return $wpdb->query("DELETE FROM $wpdb->links 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_status = 'draft' AND post_author IN ($editable) AND post_author != '$user_id' ");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L117

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:117
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 category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L216

Potential SQL Injection in admin-db.php

CWE-89
File Location: wp-admin/admin-db.php:216
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));