Skip to content

Commit

Permalink
Fixes store_valid_credential conditional logic for `unix/webapp/wp_…
Browse files Browse the repository at this point in the history
…admin_shell_upload` module
  • Loading branch information
cgranleese-r7 committed Mar 21, 2024
1 parent 3af4358 commit d750ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/exploits/unix/webapp/wp_admin_shell_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def initialize(info = {})
def check
cookie = wordpress_login(username, password)
if cookie.nil?
store_valid_credential(user: username, private: password, proof: cookie)
return CheckCode::Safe
end

store_valid_credential(user: username, private: password, proof: cookie)
CheckCode::Appears
end

Expand Down

0 comments on commit d750ea1

Please sign in to comment.