diff --git a/components/checks/passive/grep/x_frame_options.rb b/components/checks/passive/grep/x_frame_options.rb index 0c579099cb..13b14ad385 100644 --- a/components/checks/passive/grep/x_frame_options.rb +++ b/components/checks/passive/grep/x_frame_options.rb @@ -12,7 +12,8 @@ class Arachni::Checks::XFrameOptions < Arachni::Check::Base def run return if audited?( page.parsed_url.host ) || page.response.headers.empty? || - page.response.headers['X-Frame-Options'] || page.code != 200 + !page.response.headers['X-Frame-Options'].to_s.empty? || page.code != 200 + audited( page.parsed_url.host ) log(