Skip to content

Commit

Permalink
Add additional verification step
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk committed Feb 28, 2024
1 parent b3d45f7 commit 45ae984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/exploits/multi/http/wp_bricks_builder_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ def check
print_status("WordPress Version: #{wp_version}") if wp_version

theme_check_code = check_theme_version_from_style('bricks', '1.9.6.1')
return CheckCode::Unknown unless theme_check_code
return CheckCode::Safe unless theme_check_code.code == 'appears'

theme_version = theme_check_code.details[:version]
print_good("Detected Bricks theme version: #{theme_version}")
CheckCode::Appears
end

end

0 comments on commit 45ae984

Please sign in to comment.