Skip to content

Commit

Permalink
strapi review
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Nov 16, 2024
1 parent 2199812 commit dfebca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auxiliary/scanner/http/strapi_3_password_reset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def check
# npm ERR! gyp: Undefined variable standalone_static_library in binding.gyp while trying to load binding.gyp
# however vulners shows 3.0.0 and up to 3.0.0-beta.17.4 are vulnerable
version = Rex::Version.new(version.dig('data', 'strapiVersion'))
if version <= Rex::Version.new('3.0.0-beta.17.4') && version >= Rex::Version.new('3.0.0')
if version.start_with?('3.0.0-beta') && (Rex::Version.new(version.split('-beta.')[1]) <= Rex::Version.new('17.4'))
return Exploit::CheckCode::Vulnerable("Vulnerable version detected: #{version.dig('data', 'strapiVersion')}")
end

Expand Down

0 comments on commit dfebca4

Please sign in to comment.