CSRF in Vert.x-Web v4.0 milestone 1-4
CVE-2020-35217 is a Cross-Site Request Forgery vulnerability in the Vert.x-Web framework affecting version 4.0 milestone 1 through milestone 4. The CSRF protection logic does not correctly validate the anti-CSRF token supplied by the client request. Instead of comparing the CSRF token provided in the request against the CSRF token stored in the cookie, the framework compares the CSRF token in the cookie to a CSRF token stored in the server-side session. Because browsers automatically send cookies with requests, this flawed verification path can succeed even when the attacker does not supply any CSRF token in the request at all. As a result, requests that should fail CSRF validation may be accepted.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
An attacker can cause a victim's browser to submit forged state-changing requests that pass the framework's CSRF checks. This can lead to unauthorized actions being performed in the context of the victim's authenticated session, depending on the application functionality exposed through Vert.x-Web routes. Potential consequences include unauthorized account changes, transaction submission, configuration changes, or other application-specific actions normally protected by CSRF defenses.
If you can’t patch tonight, do this now.
Until the framework is upgraded, reduce exposure by disabling or avoiding reliance on the affected CSRF protection mechanism for sensitive routes and implementing compensating controls at the application layer, such as explicit server-side validation of a request-supplied anti-CSRF token tied to the user session. Additional defensive measures such as SameSite cookies and restricting cross-origin state-changing requests may reduce risk, but they should not be treated as a complete fix.
Patch, then assume compromise.
Upgrade io.vertx:vertx-web to version 4.0.0-milestone5 or later, where the CSRF verification logic is corrected. Validate that deployed applications are using the fixed dependency version and rebuild/redeploy affected services accordingly.
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.