Path: blob/master/app/finders/timthumb_version/bad_request.rb
485 views
# frozen_string_literal: true12module WPScan3module Finders4module TimthumbVersion5# Timthumb Version Finder from the body of a bad request6# See https://code.google.com/p/timthumb/source/browse/trunk/timthumb.php#4357class BadRequest < CMSScanner::Finders::Finder8# @return [ Version ]9def aggressive(_opts = {})10return unless Browser.get(target.url).body =~ /(TimThumb version\s*: ([^<]+))/1112Model::Version.new(13Regexp.last_match[2],14found_by: 'Bad Request (Aggressive Detection)',15confidence: 90,16interesting_entries: ["#{target.url}, Match: '#{Regexp.last_match[1]}'"]17)18end19end20end21end22end232425