Skip to content

Commit 58609f3

Browse files
committed
Add some features and fix bugs for CVE-2025-33053 exploit module
1 parent cb7badb commit 58609f3

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

modules/exploits/windows/fileformat/cve_2025_33053.rb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ def initialize(info = {})
2626
'Platform' => 'win',
2727
'Arch' => ARCH_X64,
2828
'Targets' => [['Windows (generic)', {}]],
29-
'DefaultTarget' => 0
29+
'DefaultTarget' => 0,
30+
'Notes' => {
31+
'Stability' => [CRASH_SAFE],
32+
'SideEffects' => [ARTIFACTS_ON_DISK],
33+
'Reliability' => [REPEATABLE_SESSION]
34+
}
3035
)
3136
)
3237

@@ -61,11 +66,9 @@ def prepare_webdav_dir
6166
print_status('Creating WebDAV directory if not exists...')
6267
FileUtils.mkdir_p(datastore['WEBDAV_DIR']) unless File.directory?(datastore['WEBDAV_DIR'])
6368
rescue Errno::EACCES
64-
fail_with(
65-
Failure::NoAccess,
66-
"Cannot create WebDAV directory. Permission denied.\n" \
67-
"Try restarting Metasploit with sudo or change ownership of #{datastore['WEBDAV_DIR']}."
68-
)
69+
fail_with(Failure::NoAccess,
70+
"Cannot create WebDAV directory. Permission denied.\n" \
71+
"Try restarting Metasploit with sudo or change ownership of #{datastore['WEBDAV_DIR']}.")
6972
end
7073

7174
def generate_payload_if_needed
@@ -118,10 +121,8 @@ def generate_url_content
118121
end
119122

120123
def return_error(currentpath)
121-
fail_with(
122-
Failure::NoAccess,
123-
"Cannot write to #{currentpath}. Permission denied.\n" \
124-
'Try restarting Metasploit with root privilege.'
125-
)
124+
fail_with(Failure::NoAccess,
125+
"Cannot write to #{currentpath}. Permission denied.\n" \
126+
'Try restarting Metasploit with root privilege.')
126127
end
127128
end

0 commit comments

Comments
 (0)