Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix apache_normalize_path_rce check method #19152

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/exploits/multi/http/apache_normalize_path_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def initialize(info = {})
'Arch' => [ARCH_CMD, ARCH_X64, ARCH_X86],
'DefaultOptions' => {
'CheckModule' => 'auxiliary/scanner/http/apache_normalize_path',
'Action' => 'CHECK_RCE',
'RPORT' => 443,
'SSL' => true
},
Expand Down Expand Up @@ -88,6 +87,12 @@ def initialize(info = {})
])
end

def check_options
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wired up via

'Options' => datastore.merge(check_options),

{
'Action' => 'CHECK_RCE'
}
end

def cmd_unix_generic?
datastore['PAYLOAD'] == 'cmd/unix/generic'
end
Expand Down
Loading