Add Selenium file read auxiliary module #19781
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of #19753
Chrome RCE PR: #19769
Firefox RCE PR: #19771
Vulnerable Application
If there is an open selenium web driver, a remote attacker can send requests to the victims browser.
In certain cases this can be used to access to the remote file system.
The vulnerability affects:
This module was successfully tested on:
Installation
docker pull selenium/standalone-firefox:3.141.59
docker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-firefox:3.141.59
Verification Steps
use auxiliary/gather/selenium_file_read
run rhost=<rhost>
Options
SCHEME (Required)
This is the scheme to use. Default is
file
.FILEPATH (Required)
This is the file to read. Default is
/etc/passwd
.BROWSER (Required)
This is the browser to use. Default is
firefox
.Scenarios
selenium/standalone-firefox:4.27.0 installed with Docker on Ubuntu 24.04