Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

wp-plugins/wp-statistics
master @ 7c56e24
5
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Reflected XSS: 2 prior fixes. Scrutinize any change in this area.
includes/log/top-pages.php: most-fixed (2 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

SQL Injection: Flawed IP validation allowed SQL injection payloads within HTTP headers to bypass checks, showing that incorrect variable mapping in tracking handlers can expose database queries to injection attacks.
Stored XSS: Database-retrieved fields like referring URLs and page URIs were rendered in admin logs without escaping, enabling persistent script execution in the context of authenticated administrative sessions.
SQL Injection: Page URI tracking functions historically appended unescaped input variables directly to queries, requiring explicit esc_sql sanitization on all raw tracking inputs.