MISP: HTTP Method Override Bypasses CSRF and Form Validation in BetterSecurityComponent
MISP
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| MISP MISP |
| No fix yet |
Original description
Affected versions of MISP rely on CakePHP request-method override processing in a way that can disable CSRF and form-security validation.
CakePHP honors a _method field or X-HTTP-Method-Override header by rewriting the effective request method. For override values outside the normal write verbs POST, PUT, PATCH, and DELETE, CakePHP also clears the parsed request body. MISP’s security component then determines whether to perform _validatePost() and _validateCsrf() based on whether request data remains. With a value such as:
_method=GET
the body becomes empty before those checks run, so both protections are skipped. A cross-site form containing only that override can therefore reach actions whose parameters are taken from the URL rather than the request body
Version affected: ≤2.5.45
From the CVE record · CIRCL