Back to Codebase

Vulnerability Analysis Report

WordPress Core v4.2.16

Scan ID: SCAN-WORDPRESS-CORE-6YEiwh • Hash: 50c3d761

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

Vulnerability Details

L40

Potential SQL Injection in class-wp-ms-users-list-table.php

CWE-89
File Location: wp-admin/includes/class-wp-ms-users-list-table.php:40
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
- $args['include'] = $wpdb->get_col( "SELECT ID FROM $wpdb->users WHERE user_login IN ('$logins')" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L121

Potential SQL Injection in class-wp-ms-sites-list-table.php

CWE-89
File Location: wp-admin/includes/class-wp-ms-sites-list-table.php:121
Security Score:
92 / 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
- $total = $wpdb->get_var( str_replace( 'SELECT *', 'SELECT COUNT( blog_id )', $query ) );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L167

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:167
Security Score:
91 / 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
- $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'post'" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L199

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:199
Security Score:
90 / 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
- $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L133

Potential SQL Injection in comment.php

CWE-89
File Location: wp-admin/includes/comment.php:133
Security Score:
90 / 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
- $pending = $wpdb->get_results( "SELECT comment_post_ID, COUNT(comment_ID) as num_comments FROM $wpdb->comments WHERE comment_post_ID IN ( $post_id_in ) AND comment_approved = '0' GROUP BY comment_post_ID", ARRAY_A );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));