Skip to content

Commit 899e275

Browse files
sfewer-r7w0rk3r
andauthored
Make the double quotes optional, reports of Server 2016 not using these, but Server 2019 is. Thanks @w0rk3r for the bug report and fix.
Co-authored-by: Jonhnathan <[email protected]>
1 parent b8cf458 commit 899e275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/http/sharepoint_toolpane_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def check
9696
# The returned HTML will have a blob of JavaScript that contains a hash object called _spPageContextInfo. A key
9797
# called siteClientTag will have a value of the current SharePoint Server patch level. We cannot rely on the HTTP
9898
# header value MicrosoftSharePointTeamServices as this may not reflect the actual patch level.
99-
site_client_tag = res.body.match(/"siteClientTag"\s*:\s*"\d*[$]+([^"]+)",/)
99+
site_client_tag = res.body.match(/"*siteClientTag"*\s*:\s*"\d*[$]+([^"]+)",/)
100100

101101
return CheckCode::Unknown('Unable to extract the siteClientTag') unless site_client_tag
102102

0 commit comments

Comments
 (0)