We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ebc6c commit 84164b4Copy full SHA for 84164b4
modules/auxiliary/scanner/http/gitlab_user_enum.rb
@@ -46,7 +46,12 @@ def run_host(_ip)
46
)
47
48
if res && res.code == 200 && res.body
49
- version = JSON.parse(res.body)
+ begin
50
+ version = JSON.parse(res.body)
51
+ rescue JSON::ParserError
52
+ fail_with(Failure::Unknown, 'Failed to parse banner version from JSON')
53
+ end
54
+
55
git_version = version['gitlab_version']
56
git_revision = version['gitlab_rev']
57
print_good("GitLab version: #{git_version} revision: #{git_revision}")
0 commit comments