Security context

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

macrozheng/mall
master @ 0504e86
5
Fixes
18
CVEs
CRITICAL
Peak severity
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
mall-admin/src/main/java/com/macro/mall/config/SecurityConfig.java: most-fixed (2 issues). Treat as high-risk during review.
4 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.

Auth Bypass: Overly permissive wildcard configurations like 'antMatchers("/**").permitAll()' bypassed security filters entirely, leaving all system routes accessible without authentication.
Auth Bypass: Broad endpoint wildcard patterns like '/admin/**' allowed unauthorized users access to administrative capabilities, which required narrowing down specifically to login and registration paths.
Auth Bypass: Product, brand, and category controllers lacked method-level security annotations, allowing unauthenticated attackers to manipulate resources unless global Spring Security checks were perfectly configured.