
WordPress 파일 업로드 RCE 익스플로잇
python3 exploit.py <target>
CVE-2025-3515는 "Drag and Drop Multiple File Upload for Contact Form 7" WordPress 플러그인의 파일 업로드 취약점으로, 인증되지 않은 공격자가 악성 파일을 업로드하여 원격 코드 실행(RCE)을 달성할 수 있게 합니다.
/inc/dnd-upload-cf7.phpdnd_upload_cf7_upload() (856행)블랙리스트에 누락된 확장자: .phar, .php5, .inc
// Line 107-108 - Potential path traversal
if ( $handle = fopen( $htaccess_file, 'w' ) ) {
fwrite( $handle, "Options -Indexes \n <Files *.php> \n deny from all \n </Files>" );
// Line 523-524 - Unvalidated log writing
$file = fopen( $uploads_dir['upload_dir']."/logs.txt", "a");
fwrite( $file, "\n". ( is_array( $message ) ? print_r( $message, true ) : $message ) );
# Search for suspicious uploads
find /wp-content/uploads/ -name "*.phar" -o -name "*.php5" -o -name "*.inc"
# Check for web shells
grep -r "system\|exec\|shell_exec" /wp-content/uploads/
# Apache/Nginx access logs
grep "admin-ajax.php" /var/log/apache2/access.log | grep "dnd_codedropz_upload"
# WordPress debug logs
grep "dnd_upload_cf7_upload" /wp-content/debug.log