Black Friday60% off BLACKFRIDAY2026
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Oct 8, 2024

CVE-2024-41810 Scanner

CVE-2024-41810 Scanner - Cross-Site Scripting (XSS) vulnerability in Twisted

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
3.3k
Times Used
continuous scan runs
4.2k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
6.1
CVSSmedium
Exploitable remotely over the internet · no authentication required · user interaction needed.
Description

Twisted is an event-based framework for internet applications, supporting Python 3.6+. The `twisted.web.util.redirectTo` function contains an HTML injection vulnerability. If application code allows an attacker to control the redirect URL this vulnerability may result in Reflected Cross-Site Scripting (XSS) in the redirect response HTML body. This vulnerability is fixed in 24.7.0rc1.

Attack Vector
Network
Privileges Req.
None
User Interaction
Required
Affected
twistedby twisted
<= 24.3.0
twistedby twistedmatrix
0
Updated Nov 7, 2026View on NVD →
Detail

Twisted is an event-driven networking engine written in Python, commonly used by developers for building internet applications. This robust framework handles a wide array of protocols and is widely implemented in projects requiring smooth and asynchronous I/O operations. Twisted's modular architecture supports integration and scalability, making it a popular choice for both small projects and large-scale servers. Its wide usage across various internet applications indicates its versatility and reliability within developer communities. The framework is often chosen for its efficiency and ability to handle a multitude of network protocols. With its extensive range of features, Twisted continues to be critical in performance-driven networking applications.

The Cross-Site Scripting (XSS) vulnerability in Twisted allows attackers to inject malicious scripts into webpages viewed by others. This exploitation can lead to unauthorized access to user data and browser activity. By manipulating certain URL redirection components within Twisted, attackers can introduce scripts that execute on the client side. This particular vulnerability stems from improper input validation within Twisted's "redirectTo" function, making it susceptible to XSS attacks. The issue impacts the security of applications using Twisted versions below 24.7.0rc1. If exploited, this vulnerability can compromise the integrity and confidentiality of the affected applications.

XSS vulnerabilities in Twisted are identified through malformed URLs that include scripts, enabling the execution of malicious code. The "redirectTo" function in Twisted's web framework lacks comprehensive input validation, facilitating the injection of scripts. Attackers can craft URLs that redirect users to unintended destinations while executing harmful scripts. By exploiting this oversight, malicious actors can control the redirect URL and inject scripts that execute when unsuspecting users click the crafted link. This vulnerability involves responses that specifically manipulate location headers and can return unexpected status codes and content types. Addressing this issue requires proper filtering and validation of input parameters.

When exploited, this XSS vulnerability in Twisted can have several detrimental effects, including unauthorized actions being performed on behalf of legitimate users. The malicious scripts can extract sensitive information such as cookies, session tokens, and user credentials. This compromise can lead to identity theft, unauthorized transactions, and loss of data integrity. Additionally, it can allow attackers to propagate further exploits or phishing campaigns using the victim’s trusted interactions. Overall, the impact of such exploitation is significant, undermining user trust and application security. Immediate attention to patching and validating input fields is crucial to mitigate risks.

REFERENCES

Solution Advice
  • Upgrade to Twisted version 24.7.0rc1 or later where the vulnerability is addressed.
  • Ensure proper input validation across all redirect functions to neutralize harmful scripts.
  • Implement Content Security Policy (CSP) headers to minimize XSS exploitation.
  • Regularly audit and update third-party libraries used in applications.
  • Evaluate security impacts of URL handling and apply coding best practices.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.