Security context

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

meysamhadeli/booking-microservices
main @ d99d1a9
5
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
API: most-fixed (1 issue). 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: The JWT helper extension was historically configured with token validation parameters that skipped lifetime/expiry checks, which would allow expired tokens to be accepted as valid. Developers must ensure that ValidateLifetime is explicitly set to true.
Auth Bypass: Minimal endpoints across several domain microservices (Booking, Flight, Passenger) were exposed without enforcing the required API scopes, leaving raw endpoints vulnerable to unauthorized access. High-severity remediation required explicitly chaining authorization policies to the endpoint definitions.
Insecure TLS Validation: A dangerous certificate validation bypass (DangerousAcceptAnyServerCertificateValidator) was used during JWT configuration, leaving backchannel communications vulnerable to MitM attacks. Production code must require HTTPS metadata and validate certificates properly.