Sha256: 869796973e57682ab86d3f82216f3c16d2ed67bbeaaad111edebc3826e424503

Contents?: true

Size: 1.79 KB

Versions: 7

Compression:

Stored size: 1.79 KB

Contents

=begin
    Copyright 2010-2013 Tasos Laskos <tasos.laskos@gmail.com>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
=end

#
# Looks for HTML "object" tags.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
#
# @version 0.1.2
#
class Arachni::Modules::HTMLObjects < Arachni::Module::Base

    def self.regexp
        @regexp ||= /<object(.*)>(.*)<\/object>/im
    end

    def run
        match_and_log( self.class.regexp ) { |m| m && !m.empty? }
    end

    def self.info
        description = %q{Logs the existence of HTML object tags.
                Since Arachni can't execute things like Java Applets and Flash
                this serves as a heads-up to the penetration tester to review
                the objects in question using a different method.}
        {
            name:        'HTML objects',
            description: description,
            elements:    [ Element::BODY ],
            author:      'Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>',
            version:     '0.1.1',
            targets:     %w(Generic),
            issue:       {
                name:        %q{HTML object},
                cwe:         '200',
                description: description,
                severity:    Severity::INFORMATIONAL
            },
            max_issues: 25
        }
    end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-0.4.5.2 modules/recon/grep/html_objects.rb
arachni-0.4.5.1 modules/recon/grep/html_objects.rb
arachni-0.4.5 modules/recon/grep/html_objects.rb
arachni-0.4.4 modules/recon/grep/html_objects.rb
arachni-0.4.3.2 modules/recon/grep/html_objects.rb
arachni-0.4.3.1 modules/recon/grep/html_objects.rb
arachni-0.4.3 modules/recon/grep/html_objects.rb