Back to Codebase

Vulnerability Analysis Report

WordPress Core v3.9.18

Scan ID: SCAN-WORDPRESS-CORE-QdYArx • Hash: 7a614fd0

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

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:
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
- $args['include'] = $wpdb->get_col( "SELECT ID FROM $wpdb->users WHERE user_login IN ('$logins')" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L131

Potential SQL Injection in comment.php

CWE-89
File Location: wp-admin/includes/comment.php:131
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
- $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));
L50

Potential SQL Injection in class-wp-media-list-table.php

CWE-89
File Location: wp-admin/includes/class-wp-media-list-table.php:50
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
- $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L61

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:61
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
- $reg_blog_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->registration_log} WHERE {$wpdb->registration_log}.IP LIKE ( '{$like_s}$wild' )" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L109

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:109
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
- $total = $wpdb->get_var( str_replace( 'SELECT *', 'SELECT COUNT( blog_id )', $query ) );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));