Back to Codebase

Vulnerability Analysis Report

WordPress Core v4.3.30

Scan ID: SCAN-WORDPRESS-CORE-3yol1C • Hash: c399862d

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

Vulnerability Details

L132

Potential SQL Injection in comment.php

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

Potential SQL Injection in deprecated.php

CWE-89
File Location: wp-admin/includes/deprecated.php:560
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->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L148

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

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:50
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));
L563

Potential SQL Injection in deprecated.php

CWE-89
File Location: wp-admin/includes/deprecated.php:563
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
- $this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // no limit
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));