Skip to content

Commit

Permalink
fix path normalization and missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
vultza committed Nov 2, 2024
1 parent 8f2f0c7 commit a74e167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/auxiliary/gather/onedev_arbitrary_file_read.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(info = {})
can view existing projects without authentication.
However, when anonymous access is disabled, an attacker who lacks prior knowledge of existing project names can use a brute-force approach.
By providing a user-supplied wordlist, the module may be able to guess a valid project name and subsequently exploit the vulnerability.
}
},
'Author' => [
'vultza', # metasploit module
'Siebene' # vuln discovery
Expand Down Expand Up @@ -74,7 +74,7 @@ def check
def validate_project_exists(project)
res = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(target_uri.path, "/#{project}", '/~site')
'uri' => normalize_uri(target_uri.path, project, '~site')
})

fail_with(Failure::Unreachable, 'Request timed out.') unless res
Expand Down

0 comments on commit a74e167

Please sign in to comment.