id: dedecms-openredirect

info:
  name: DedeCMS - Open Redirect
  author: pikpikcu
  severity: medium
  description: DedeCMS contains an open redirect vulnerability. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  reference:
    - https://blog.csdn.net/ystyaoshengting/article/details/82734888
  classification:
    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
    cpe: cpe:2.3:a:dedecms:dedecms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"power by dedecms" || title:"dedecms"
    product: dedecms
    vendor: dedecms
  tags: dedecms,redirect,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/plus/download.php?open=1&link=aHR0cHM6Ly9pbnRlcmFjdC5zaA=="

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Location: https://interact.sh"
        part: header

      - type: status
        status:
          - 302
# digest: 4a0a004730450221009f0e02299ccd14e63151388594d3427c28c945f98371081a2a57aa93144ef73702206642041203de22d7e7d64a21f68e2876f9157babdf6805d5368d8da0b60f4353:922c64590222798bb761d5b6d8e72950