Back to Codebase

Vulnerability Analysis Report

WordPress Core v6.0.2

Scan ID: SCAN-WORDPRESS-CORE-x1FUjx • Hash: f47d0ad3

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

Vulnerability Details

L242

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:242
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
- $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" );
+ $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:
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
- $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'post'" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L216

Potential SQL Injection in class-wp-site-health.php

CWE-89
File Location: wp-admin/includes/class-wp-site-health.php:216
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->mysql_server_version = $wpdb->get_var( 'SELECT VERSION()' );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L855

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

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