-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency twisted to v24.7.0 [security] #5
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: pypi/[email protected], pypi/[email protected], pypi/[email protected] |
85f940e
to
67488aa
Compare
This PR contains the following updates:
24.3.0
->24.7.0
GitHub Vulnerability Alerts
CVE-2024-41671
Summary
The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure.
PoC
Impact
See GHSA-xc8x-vp79-p3wm. Further, for instances of twisted.web HTTP servers deployed behind reverse proxies that implement connection pooling, it may be possible for remote attackers to receive responses intended for other clients of the twisted.web server.
CVE-2024-41810
Summary
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.Details
Twisted’s
redirectTo
function generates anHTTP 302 Redirect
response. The response contains an HTML body, built for exceptional cases where the browser doesn’t properly handle the redirect, allowing the user to click a link, navigating them to the specified destination.The function reflects the destination URL in the HTML body without any output encoding.
If an attacker has full or partial control over redirect location due to an application bug, also known as an “Open Redirect”, they may inject arbitrary HTML into the response’s body, ultimately leading to an XSS attack.
It’s worth noting that the issue is known to maintainers and tracked with GitHub Issue#9839. The issue description, however, does not make any mention of exploitability and simply states: “…Browsers don't seem to actually render that page…”
PoC
The issue can be reproduced by running the following Twisted-based HTTP server locally:
Once running, navigate to the following URL:
http://127.0.0.1:9009?url=ws://example.com/"><script>alert(document.location)</script>
, and verify that the “alert” dialog was displayed.Note: Due to the different ways browsers validate the redirect Location header, this attack is possible only in Firefox. All other tested browsers will display an error message to the user and will not render the HTML body.
Impact
If successfully exploited, the issue will allow malicious JavaScript to run in the context of the victim's session. This will in turn lead to unauthorized access/modification to victim's account and information associated with it, or allow for unauthorized operations to be performed within the context of the victim's session.
Release Notes
twisted/twisted (twisted)
v24.7.0
: Twisted 24.7.0Compare Source
Twisted 24.7.0 (2024-08-08)
24.7.0.rc2 fixed an unreleased regression caused by PR 12109. (#12279)
No other changes since 24.7.0.rc2
Features
REMOTE_PORT
. (#12096)assert
to check the type of the arguments. You should now use type checking to validate your code. These changes were done to reduce the CPU usage. (#12122)Bugfixes
conch
command-line no longer will either. (#12141)Improved Documentation
Deprecations and Removals
return
statement. (#9930)twisted-iocpsupport
is no longer a hard dependency on Windows.The IOCP support is now installed together with the other Windows soft
dependencies via
twisted[windows-platform]
. (#11893)This is done to have the same behaviour as with Python 3.13. (#12063)
async
argument, deprecated since 18.9.0, has been removed. (#12130)The SOAP support was already broken, for at least the last 4 years.
The SOAP support in Twisted has no active maintainer. (#12146)
Misc
Conch
Bugfixes
Bugfixes
Deprecations and Removals
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.