CVE-2020-35217 Cross-Site Request Forgery in Vert.x-Web framework

High 8.8 Published Updated

Attackers can bypass CSRF protection in Vert.x Web by exploiting flawed token verification logic, allowing unauthorized state-changing requests.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-35217?

CVE-2020-35217 is a high-severity vulnerability in n/a, published on 20 Jan 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Vert.x-Web framework v4.0 milestone 1-4 does not perform a correct CSRF verification. Instead of comparing the CSRF token in the request with the CSRF token in the cookie, it compares the CSRF token in the cookie against a CSRF token that is stored in the session. An attacker does not even need to provide a CSRF token in the request because the framework does not consider it. The cookies are automatically sent by the browser and the verification will always succeed, leading to a successful CSRF attack.

Weakness: CWE-352

Which versions are affected by CVE-2020-35217?

8 open source packages ship an affected version, including io.vertx:vertx-web. It affects 1 product.

PackageAffectedFixed in
io.vertx:vertx-web MavenFrom 4.0.0-milestone14.0.0-milestone5
io.vertx:vertx-web MavenFrom 4.0.0-milestone14.0.0-milestone5
io.vertx:vertx-web MavenFrom 4.0.0-milestone24.0.0-milestone5
io.vertx:vertx-web MavenFrom 4.0.0-milestone24.0.0-milestone5
io.vertx:vertx-web MavenFrom 4.0.0-milestone34.0.0-milestone5
io.vertx:vertx-web MavenFrom 4.0.0-milestone34.0.0-milestone5
2 more packages
io.vertx:vertx-web MavenFrom 4.0.0-milestone44.0.0-milestone5
io.vertx:vertx-web MavenFrom 4.0.0-milestone44.0.0-milestone5

Products include Eclipse Vert.x-Web.

How do I fix CVE-2020-35217?

Upgrade io.vertx:vertx-web to 4.0.0-milestone5 or later.

Is CVE-2020-35217 being exploited?

There is no known exploitation of CVE-2020-35217 in the wild and no public exploit code.

Sources

Also known as GHSA-9q69-g5gc-9fgf.

Is CVE-2020-35217 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free