Skip to content

Commit 73f0963

Browse files
committed
Lint ^^
1 parent 691cead commit 73f0963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/linux/http/craftcms_preauth_rce_cve_2025_32432.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def extract_csrf_token(res)
150150
'uri' => normalize_uri(target_uri.path, 'index.php'),
151151
'keep_cookies' => true
152152
)
153-
res2&.get_html_document.at('//input[@name="CRAFT_CSRF_TOKEN"]/@value')&.text
153+
res2&.get_html_document&.at('//input[@name="CRAFT_CSRF_TOKEN"]/@value')&.text
154154
end
155155

156156
def leak_session_path(csrf)
@@ -219,7 +219,7 @@ def check
219219
if res.body.include?(sum.to_s)
220220
CheckCode::Vulnerable("Detected RCE: send #{a}+#{b}, got #{sum}!")
221221
else
222-
CheckCode::Safe("Unable to exercise code execution.")
222+
CheckCode::Safe('Unable to exercise code execution.')
223223
end
224224
end
225225

0 commit comments

Comments
 (0)