Skip to content

Commit

Permalink
change the payload space to 5000. This allows all the payloads I test…
Browse files Browse the repository at this point in the history
…ed to work but also allows all the 3 gadget chains I tested to work. ClaimsPrincipal and TypeConfuseDelegate will fail if the space is too large.
  • Loading branch information
sfewer-r7 committed Oct 4, 2023
1 parent 1be8e02 commit ccd8c71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/exploits/windows/http/ws_ftp_rce_cve_2023_40044.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def initialize(info = {})
'DisclosureDate' => '2023-09-27',
'Platform' => %w[win],
'Arch' => [ARCH_CMD],
'Payload' => { 'Space' => 8192 },
# 5000 will allow the powershell payloads to work as they require ~4200 bytes. Notably, the ClaimsPrincipal and
# TypeConfuseDelegate (but not TextFormattingRunProperties) gadget chains will fail if Space is too large (e.g.
# 8192 bytes), as the encoded payload command is padded with leading whitespace characters (0x20) to consume
# all the available payload space via ./modules/nops/cmd/generic.rb).
'Payload' => { 'Space' => 5000 },
'Privileged' => false, # Code execution as `NT AUTHORITY\NETWORK SERVICE`.
'Targets' => [
[
Expand Down

0 comments on commit ccd8c71

Please sign in to comment.