Back to Codebase

Vulnerability Analysis Report

WordPress Core v6.0.10

Scan ID: SCAN-WORDPRESS-CORE-ftJxy2 • Hash: 8b5040a8

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

Vulnerability Details

L1570

Potential SQL Injection in class-wp-debug-data.php

CWE-89
File Location: wp-admin/includes/class-wp-debug-data.php:1570
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
- $rows = $wpdb->get_results( 'SHOW TABLE STATUS', ARRAY_A );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L160

Potential SQL Injection in comment.php

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

Potential SQL Injection in export.php

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

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:242
Security Score:
89 / 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));
L1297

Cross-Site Scripting (XSS) in class-wp-posts-list-table.php

CWE-79
File Location: wp-admin/includes/class-wp-posts-list-table.php:1297
Security Score:
89 / 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
- echo implode( wp_get_list_item_separator(), $term_links );
+ echo esc_html(implode( wp_get_list_item_separator(), $term_links ));