Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 468 Bytes

detect-no-csrf-before-method-override.md

File metadata and controls

9 lines (5 loc) · 468 Bytes

Detects Express "csrf" middleware setup before "method-override" middleware (security/detect-no-csrf-before-method-override)

⚠️ This rule warns in the ✅ recommended config.

This can allow GET requests (which are not checked by csrf) to turn into POST requests later.

More information: Bypass Connect CSRF protection by abusing methodOverride Middleware