Skip to content

Commit 9b1d07d

Browse files
vognikmsutovsky-r7
andauthored
removed unnecessary fail_with from check function
Co-authored-by: msutovsky-r7 <[email protected]>
1 parent bdad398 commit 9b1d07d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/exploits/multi/http/xwiki_unauth_rce_cve_2025_24893.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ def check
9191
return CheckCode::Unknown('No response from target') unless res&.code == 200
9292

9393
version_div = res.get_html_document.at('div[id="xwikiplatformversion"]')
94-
unless version_div
95-
fail_with(Failure::UnexpectedReply, "#{peer} - Unable to find <div id=\"xwikiplatformversion\"> tag in response")
96-
return CheckCode::Safe('Possibly not XWiki or incorrect path (version tag not found)')
97-
end
94+
return CheckCode::Safe('Possibly not XWiki or incorrect path (version tag not found)') unless version_div
9895

9996
version_match = version_div.text.match(/XWiki.*?(\d+\.\d+\.\d+)/)
10097
unless version_match

0 commit comments

Comments
 (0)