CVE-2022-28108: Selenium Server (Grid) CSRF Vulnerability

Summary

20/04/2022
Yes i
High
8.8

CVE-2022-28108: Selenium Server (Grid) CSRF. Affects org.seleniumhq.selenium:selenium-grid versions < 4.0.0-alpha-7. Fixed in 4.0.0-alpha-7. How to fix ↓

Also tracked for

The same CVE-2022-28108 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Selenium is a widely used open-source framework for automating web applications for testing purposes. It provides a suite of tools and libraries that enable developers to write tests in various programming languages. Selenium Grid is a component that allows for the parallel execution of tests across multiple machines and browsers. However, prior to version 4.0.0, Selenium Server (Grid) was vulnerable to Cross-Site Request Forgery (CSRF) attacks due to its acceptance of non-JSON content types, which could be exploited by malicious actors.

Vulnerability Detail

The vulnerability arises from Selenium Server (Grid) allowing non-JSON content types such as application/x-www-form-urlencoded, multipart/form-data, and text/plain. This permissiveness can lead to CSRF attacks, where an attacker tricks a user into executing unwanted actions on a web application in which they are authenticated. The potential ramifications include unauthorized actions being performed on behalf of the user, leading to data breaches or manipulation of the application state.

How To Fix

Minimum fixed version

4.0.0-alpha-7

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can implement CSRF protection mechanisms in your application, such as using anti-CSRF tokens or validating the content type of incoming requests to ensure they are JSON formatted. However, the best solution is to update to the patched version.

Conclusion

The CSRF vulnerability in Selenium Server (Grid) prior to version 4.0.0 poses significant risks to applications using this framework. It is crucial for developers to update their dependencies to the latest version to protect against potential attacks. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.

See every vulnerability recorded for org.seleniumhq.selenium:selenium-grid →

Share this vulnerability

FAQ

Cross-Site Request Forgery (CSRF) is a type of attack that tricks the victim into submitting a request that they did not intend to make, potentially compromising their account.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

If exploited, this vulnerability can allow attackers to perform unauthorized actions on behalf of authenticated users, leading to data breaches or manipulation of application data.

Yes, you should upgrade to version 4.0.0 or later of both the Selenium Server (Grid) and Selenium Server packages to mitigate this vulnerability.

The CVSS score for this vulnerability is 8.8, indicating a high severity level.

How To Fix

Minimum fixed version

4.0.0-alpha-7

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback