id: CVE-2024-3274

info:
  name: D-LINK DNS-320L,DNS-320LW and DNS-327L - Information Disclosure
  author: DhiyaneshDk
  severity: medium
  description: |
    A vulnerability has been found in D-Link DNS-320L, DNS-320LW and DNS-327L up to 20240403 and classified as problematic. Affected by this vulnerability is an unknown functionality of the file /cgi-bin/info.cgi of the component HTTP GET Request Handler.
  impact: |
    Unauthenticated attackers can access sensitive system information from D-Link NAS devices.
  remediation: |
    Update D-Link NAS firmware to a version that patches the information disclosure vulnerability.
  reference:
    - https://github.com/netsecfish/info_cgi
    - https://supportannouncement.us.dlink.com/security/publication.aspx?name=SAP10383
    - https://nvd.nist.gov/vuln/detail/CVE-2024-3274
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2024-3274
    cwe-id: CWE-200
    epss-score: 0.33484
    epss-percentile: 0.98159
    cpe: cpe:2.3:h:dlink:dns-320l:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    fofa-query: body="Text:In order to access the ShareCenter"
    product: dns-320l
    vendor: dlink
  tags: cve,cve2024,dlink,exposure,vuln

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

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Model=", "Build=", "Macaddr=")'
          - 'status_code == 200'
        condition: and
# digest: 490a00463044022015c87491e35c3aa2f1ee64db2351f4b0277e1d0890c7d96507f3b1a25c8e79f602207d40ee223d4c60699ab26df8ec15aa83456189078355b00bac635d39b2d1f598:922c64590222798bb761d5b6d8e72950