HexBrain

Browse / CVEs / CVE-2013-2248

CVE-2013-2248· apache / struts· CWE-20

Apache Struts - Multiple Open Redirection Vulnerabilities

mediumseverity
5.8CVSS score
94.7%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Developers should immediately upgrade to Struts 2.3.15.1 or later.

How to confirm it

Send: GET {{BaseURL}}/index.action?redirect:http://www.interact.sh/
Positive when: matches in header /(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$/

Run it with nuclei: nuclei -id CVE-2013-2248 -u <target>. This check is not marked as verified by its authors.

The full check
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.94654
    epss-percentile: 0.99857
    cpe: cpe:2.3:a:apache:struts:2.0.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: struts
    shodan-query:
      - http.html:"apache struts"
      - http.title:"struts2 showcase"
      - http.html:"struts problem report"
    fofa-query:
      - body="struts problem report"
      - title="struts2 showcase"
      - body="apache struts"
    google-query: intitle:"struts2 showcase"
  tags: cve2013,cve,apache,redirect,struts,edb,vuln

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.*$'

References

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