Back to Codebase

Vulnerability Analysis Report

WordPress Core v2.3

Scan ID: SCAN-WORDPRESS-CORE-h1xmci • Hash: 8d317bdc

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

Vulnerability Details

L19

Potential SQL Injection in edit.php

CWE-89
File Location: wp-admin/edit.php:19
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
- $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));
L176

Potential SQL Injection in edit.php

CWE-89
File Location: wp-admin/edit.php:176
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
- $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));
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));
L170

Cross-Site Scripting (XSS) in edit-comments.php

CWE-79
File Location: wp-admin/edit-comments.php:170
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
- <a href="<?php echo get_permalink($comment->comment_post_ID); ?>#comment-<?php comment_ID() ?>" class="edit"><?php _e('View') ?></a>
+ echo esc_html(get_permalink($comment->comment_post_ID));
L146

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

CWE-79
File Location: wp-admin/edit-page-form.php:146
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
- <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" style="position: absolute; right: 2em; margin-right: 19em; text-decoration: underline;" target="_blank"><?php _e('Preview &raquo;'); ?></a>
+ echo esc_html(clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))));