id: CVE-2013-2248

info:
  name: Apache Struts - Multiple Open Redirection Vulnerabilities
  author: 0x_Akoko
  severity: medium
  description: Apache Struts is prone to multiple open-redirection vulnerabilities because the application fails to properly sanitize user-supplied input.
  impact: |
    An attacker can exploit these vulnerabilities to redirect users to malicious websites, leading to phishing attacks or the download of malware.
  remediation: Developers should immediately upgrade to Struts 2.3.15.1 or later.
  reference:
    - https://www.exploit-db.com/exploits/38666
    - https://nvd.nist.gov/vuln/detail/CVE-2013-2248
    - https://cwiki.apache.org/confluence/display/WW/S2-017
    - http://struts.apache.org/release/2.3.x/docs/s2-017.html
    - http://www.fujitsu.com/global/support/software/security/products-f/interstage-bpm-analytics-201301e.html
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:N
    cvss-score: 5.8
    cve-id: CVE-2013-2248
    cwe-id: CWE-20
    epss-score: 0.97268
    epss-percentile: 0.99838
    cpe: cpe:2.3:a:apache:struts:2.0.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: struts
  tags: cve2013,cve,apache,redirect,struts,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.action?redirect:http://www.interact.sh/"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'
# digest: 4b0a0048304602210097e5f1c5992fd137ee9d5d2670140430f951cc20184ef1ed7a7e29b86b39c799022100a1ee651b62a2b6686d84b3e91e268b379fc002179a6094743d68c357e8ffe4b6:922c64590222798bb761d5b6d8e72950