Back to Codebase

Vulnerability Analysis Report

WordPress Core v2.3.1

Scan ID: SCAN-WORDPRESS-CORE-ub6fFC • Hash: 5c572eca

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

Vulnerability Details

L28

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:28
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
- $authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L65

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:65
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
- $post_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L19

Potential SQL Injection in edit.php

CWE-89
File Location: wp-admin/edit.php:19
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
- $avail_post_stati = $wpdb->get_col("SELECT DISTINCT post_status FROM $wpdb->posts WHERE post_type = 'post'");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L73

Cross-Site Scripting (XSS) in edit-form-comment.php

CWE-79
File Location: wp-admin/edit-form-comment.php:73
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
- <input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" />
+ echo esc_html($comment->comment_post_ID ?>" />);
L176

Potential SQL Injection in edit.php

CWE-89
File Location: wp-admin/edit.php:176
Security Score:
88 / 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
- $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date");
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));