Back to Codebase

Vulnerability Analysis Report

WordPress Core v4.9.1

Scan ID: SCAN-WORDPRESS-CORE-7GJ4Mm • Hash: e0cf1f47

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

Vulnerability Details

L262

Potential SQL Injection in deprecated.php

CWE-89
File Location: wp-admin/includes/deprecated.php:262
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_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L567

Potential SQL Injection in deprecated.php

CWE-89
File Location: wp-admin/includes/deprecated.php:567
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
- $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));
L131

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/includes/export.php:131
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
- $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));
L179

Potential SQL Injection in export.php

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

Potential SQL Injection in export.php

CWE-89
File Location: wp-admin/export.php:221
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 = 'page'" );
+ $wpdb->query($wpdb->prepare("SELECT ... WHERE field = %s", $variable));