watobo 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +2 -2
- data/{CHANGELOG → CHANGELOG.md} +62 -0
- data/README.md +30 -0
- data/bin/nfq_server.rb +4 -3
- data/bin/watobo_gui.rb +1 -1
- data/config/ott_cache.yml +4 -0
- data/config/scanner.yml +1 -18
- data/config/sid_cache.yml +14 -0
- data/extras/private-hostspot.sh +17 -0
- data/extras/watobo-installer.sh +61 -0
- data/extras/watobo-transparent.sh +38 -0
- data/icons/BestPractice_16x16.ico +0 -0
- data/icons/BestPractice_24x24.ico +0 -0
- data/lib/watobo/adapters/data_store.rb +25 -3
- data/lib/watobo/adapters/file/file_store.rb +19 -11
- data/lib/watobo/adapters/session_store.rb +3 -2
- data/lib/watobo/adapters.rb +1 -1
- data/lib/watobo/ca.rb +1 -1
- data/lib/watobo/config.rb +17 -19
- data/lib/watobo/constants.rb +3 -2
- data/lib/watobo/core/active_check.rb +62 -40
- data/lib/watobo/core/active_checks.rb +73 -0
- data/lib/watobo/core/ca.rb +3 -2
- data/lib/watobo/core/cert_store.rb +3 -2
- data/lib/watobo/core/chat.rb +122 -0
- data/lib/watobo/core/chats.rb +301 -0
- data/lib/watobo/core/conversation.rb +71 -0
- data/lib/watobo/core/cookie.rb +9 -25
- data/lib/watobo/core/finding.rb +89 -0
- data/lib/watobo/core/findings.rb +132 -0
- data/lib/watobo/core/forwarding_proxy.rb +4 -2
- data/lib/watobo/core/fuzz_gen.rb +3 -2
- data/lib/watobo/core/intercept_carver.rb +24 -12
- data/lib/watobo/core/intercept_filter.rb +4 -3
- data/lib/watobo/core/interceptor.rb +9 -888
- data/lib/watobo/core/min_class.rb +27 -0
- data/lib/watobo/core/netfilter_queue.rb +3 -2
- data/lib/watobo/core/ott_cache.rb +156 -0
- data/lib/watobo/core/parameter.rb +66 -0
- data/lib/watobo/core/passive_check.rb +15 -22
- data/lib/watobo/core/passive_checks.rb +72 -0
- data/lib/watobo/core/passive_scanner.rb +69 -0
- data/lib/watobo/core/plugin.rb +33 -0
- data/lib/watobo/core/project.rb +40 -547
- data/lib/watobo/core/proxy.rb +7 -2
- data/lib/watobo/core/request.rb +95 -10
- data/lib/watobo/core/response.rb +44 -3
- data/lib/watobo/core/scanner.rb +6 -7
- data/lib/watobo/core/scanner3.rb +439 -0
- data/lib/watobo/core/scope.rb +106 -0
- data/lib/watobo/core/session.rb +106 -286
- data/lib/watobo/core/sid_cache.rb +121 -0
- data/lib/watobo/core/subscriber.rb +48 -0
- data/lib/watobo/core.rb +2 -2
- data/lib/watobo/defaults.rb +3 -2
- data/lib/watobo/external/diff/lcs/array.rb +1 -1
- data/lib/watobo/external/diff/lcs/block.rb +1 -1
- data/lib/watobo/external/diff/lcs/callbacks.rb +1 -1
- data/lib/watobo/external/diff/lcs/change.rb +1 -1
- data/lib/watobo/external/diff/lcs/hunk.rb +1 -1
- data/lib/watobo/external/diff/lcs/ldiff.rb +1 -1
- data/lib/watobo/external/diff/lcs/string.rb +1 -1
- data/lib/watobo/external/diff/lcs.rb +1 -1
- data/lib/watobo/external/ntlm/ntlm.rb +1 -1
- data/lib/watobo/externals.rb +1 -1
- data/lib/watobo/framework/create_project.rb +19 -12
- data/lib/watobo/framework/init.rb +4 -3
- data/lib/watobo/framework/init_modules.rb +32 -3
- data/lib/watobo/framework/license_text.rb +3 -2
- data/lib/watobo/framework/load_chat.rb +36 -0
- data/lib/watobo/framework.rb +2 -2
- data/lib/watobo/gui/about_watobo.rb +3 -2
- data/lib/watobo/gui/browser_preview.rb +4 -3
- data/lib/watobo/gui/certificate_dialog.rb +3 -2
- data/lib/watobo/gui/chat_diff.rb +6 -14
- data/lib/watobo/gui/chatviewer_frame.rb +30 -5
- data/lib/watobo/gui/checkboxtree.rb +13 -12
- data/lib/watobo/gui/checks_policy_frame.rb +8 -10
- data/lib/watobo/gui/client_cert_dialog.rb +8 -6
- data/lib/watobo/gui/confirm_scan_dialog.rb +5 -3
- data/lib/watobo/gui/conversation_table.rb +288 -51
- data/lib/watobo/gui/conversation_table_ctrl.rb +36 -3
- data/lib/watobo/gui/conversation_table_ctrl2.rb +416 -0
- data/lib/watobo/gui/csrf_token_dialog.rb +25 -33
- data/lib/watobo/gui/dashboard.rb +47 -45
- data/lib/watobo/gui/define_scope_frame.rb +27 -22
- data/lib/watobo/gui/differ_frame.rb +238 -0
- data/lib/watobo/gui/edit_comment.rb +3 -2
- data/lib/watobo/gui/edit_scope_dialog.rb +7 -6
- data/lib/watobo/gui/finding_info.rb +3 -2
- data/lib/watobo/gui/findings_tree.rb +101 -26
- data/lib/watobo/gui/full_scan_dialog.rb +5 -6
- data/lib/watobo/gui/fuzzer_gui.rb +51 -18
- data/lib/watobo/gui/goto_url_dialog.rb +92 -0
- data/lib/watobo/gui/hex_viewer.rb +16 -5
- data/lib/watobo/gui/html_viewer.rb +309 -0
- data/lib/watobo/gui/intercept_filter_dialog.rb +3 -2
- data/lib/watobo/gui/interceptor_gui.rb +5 -4
- data/lib/watobo/gui/interceptor_settings_dialog.rb +4 -3
- data/lib/watobo/gui/list_box.rb +4 -3
- data/lib/watobo/gui/log_file_viewer.rb +55 -0
- data/lib/watobo/gui/log_viewer.rb +3 -82
- data/lib/watobo/gui/login_wizzard.rb +3 -3
- data/lib/watobo/gui/main_window.rb +183 -164
- data/lib/watobo/gui/manual_request_editor.rb +157 -642
- data/lib/watobo/gui/master_pw_dialog.rb +3 -2
- data/lib/watobo/gui/mixins/gui_settings.rb +3 -2
- data/lib/watobo/gui/page_tree.rb +3 -2
- data/lib/watobo/gui/password_policy_dialog.rb +3 -2
- data/lib/watobo/gui/plugin_board.rb +103 -73
- data/lib/watobo/gui/preferences_dialog.rb +3 -2
- data/lib/watobo/gui/progress_window.rb +3 -2
- data/lib/watobo/gui/project_wizzard.rb +3 -2
- data/lib/watobo/gui/proxy_dialog.rb +3 -2
- data/lib/watobo/gui/quick_scan_dialog.rb +17 -32
- data/lib/watobo/gui/request_builder_frame.rb +134 -0
- data/lib/watobo/gui/request_editor.rb +14 -9
- data/lib/watobo/gui/rewrite_filters_dialog.rb +4 -3
- data/lib/watobo/gui/rewrite_rules_dialog.rb +4 -3
- data/lib/watobo/gui/save_chat_dialog.rb +7 -3
- data/lib/watobo/gui/scanner_settings_dialog.rb +4 -3
- data/lib/watobo/gui/select_chat_dialog.rb +15 -25
- data/lib/watobo/gui/session_management_dialog.rb +21 -25
- data/lib/watobo/gui/sites_tree.rb +5 -4
- data/lib/watobo/gui/status_bar.rb +3 -2
- data/lib/watobo/gui/table_editor.rb +398 -386
- data/lib/watobo/gui/tagless_viewer.rb +3 -2
- data/lib/watobo/gui/templates/plugin.rb +3 -2
- data/lib/watobo/gui/templates/plugin2.rb +4 -3
- data/lib/watobo/gui/templates/plugin_base.rb +168 -0
- data/lib/watobo/gui/text_viewer.rb +49 -3
- data/lib/watobo/gui/transcoder_window.rb +3 -2
- data/lib/watobo/gui/utils/gui_utils.rb +5 -4
- data/lib/watobo/gui/utils/init_icons.rb +5 -2
- data/lib/watobo/gui/utils/load_icons.rb +3 -2
- data/lib/watobo/gui/utils/load_plugins.rb +22 -5
- data/lib/watobo/gui/utils/master_password.rb +3 -2
- data/lib/watobo/gui/utils/save_default_settings.rb +7 -5
- data/lib/watobo/gui/utils/save_project_settings.rb +1 -1
- data/lib/watobo/gui/utils/save_proxy_settings.rb +4 -3
- data/lib/watobo/gui/utils/save_scanner_settings.rb +5 -4
- data/lib/watobo/gui/utils/session_history.rb +3 -2
- data/lib/watobo/gui/workspace_dialog.rb +3 -2
- data/lib/watobo/gui/www_auth_dialog.rb +4 -3
- data/lib/watobo/gui/xml_viewer_frame.rb +3 -2
- data/lib/watobo/gui.rb +6 -3
- data/lib/watobo/http/cookies/cookies.rb +66 -0
- data/lib/watobo/http/data/data.rb +68 -0
- data/lib/watobo/{gui/mixins/subscriber.rb → http/url/url.rb} +33 -19
- data/lib/watobo/http_socket/agent.rb +851 -0
- data/lib/watobo/http_socket/client_socket.rb +290 -0
- data/lib/watobo/http_socket/connection.rb +423 -0
- data/lib/watobo/http_socket/http_socket.rb +273 -0
- data/lib/watobo/http_socket/ntlm_auth.rb +152 -0
- data/lib/watobo/http_socket/proxy.rb +31 -0
- data/lib/watobo/http_socket.rb +25 -0
- data/lib/watobo/interceptor/proxy.rb +883 -0
- data/lib/watobo/interceptor/transparent.rb +37 -0
- data/lib/watobo/interceptor.rb +25 -0
- data/lib/watobo/mixins/check_info.rb +50 -0
- data/lib/watobo/mixins/httpparser.rb +92 -20
- data/lib/watobo/mixins/request_parser.rb +103 -88
- data/lib/watobo/mixins/shapers.rb +42 -11
- data/lib/watobo/mixins/transcoders.rb +61 -57
- data/lib/watobo/mixins.rb +3 -2
- data/lib/watobo/parser/html.rb +106 -0
- data/lib/watobo/parser.rb +22 -0
- data/lib/watobo/utils/check_regex.rb +3 -2
- data/lib/watobo/utils/copy_object.rb +3 -2
- data/lib/watobo/utils/crypto.rb +3 -2
- data/lib/watobo/utils/expand_range.rb +3 -2
- data/lib/watobo/utils/file_management.rb +7 -3
- data/lib/watobo/utils/hexprint.rb +3 -2
- data/lib/watobo/utils/load_chat.rb +4 -3
- data/lib/watobo/utils/load_icon.rb +3 -2
- data/lib/watobo/utils/print_debug.rb +3 -2
- data/lib/watobo/utils/response_builder.rb +6 -4
- data/lib/watobo/utils/response_hash.rb +66 -49
- data/lib/watobo/utils/secure_eval.rb +3 -2
- data/lib/watobo/utils/strings.rb +3 -2
- data/lib/watobo/utils/text2request.rb +4 -5
- data/lib/watobo/utils/url.rb +46 -0
- data/lib/watobo/utils.rb +3 -2
- data/lib/watobo.rb +13 -3
- data/modules/active/Apache/mod_status.rb +15 -11
- data/modules/active/Flash/crossdomain.rb +17 -14
- data/modules/active/RoR/cve_2013_015x.rb +21 -0
- data/modules/active/directories/dirwalker.rb +10 -16
- data/modules/active/discovery/fileextensions.rb +10 -7
- data/modules/active/discovery/http_methods.rb +8 -9
- data/modules/active/domino/domino_db.rb +10 -11
- data/modules/active/dotNET/custom_errors.rb +124 -0
- data/modules/active/dotNET/dotnet_files.rb +112 -0
- data/modules/active/fileinclusion/lfi_simple.rb +9 -7
- data/modules/active/jboss/jboss_basic.rb +12 -9
- data/modules/active/sap/its_commands.rb +10 -9
- data/modules/active/sap/its_service_parameter.rb +10 -9
- data/modules/active/sap/its_services.rb +10 -9
- data/modules/active/sap/its_xss.rb +11 -10
- data/modules/active/siebel/siebel_apps.rb +14 -16
- data/modules/active/sqlinjection/sql_boolean.rb +139 -75
- data/modules/active/sqlinjection/sqli_error.rb +9 -6
- data/modules/active/sqlinjection/sqli_timing.rb +13 -11
- data/modules/active/xml/xml_xxe.rb +134 -0
- data/modules/active/xss/{xss_rated.rb → xss_ng.rb} +89 -56
- data/modules/active/xss/xss_simple.rb +9 -6
- data/modules/passive/ajax.rb +85 -0
- data/modules/passive/autocomplete.rb +78 -0
- data/modules/passive/cookie_options.rb +3 -2
- data/modules/passive/cookie_xss.rb +3 -2
- data/modules/passive/detect_code.rb +7 -4
- data/modules/passive/detect_fileupload.rb +3 -2
- data/modules/passive/detect_infrastructure.rb +7 -4
- data/modules/passive/detect_one_time_tokens.rb +3 -2
- data/modules/passive/dirindexing.rb +3 -2
- data/modules/passive/disclosure_domino.rb +3 -2
- data/modules/passive/disclosure_emails.rb +3 -2
- data/modules/passive/disclosure_ipaddr.rb +3 -2
- data/modules/passive/filename_as_parameter.rb +3 -2
- data/modules/passive/form_spotter.rb +10 -7
- data/modules/passive/hidden_fields.rb +73 -0
- data/modules/passive/hotspots.rb +7 -4
- data/modules/passive/in_script_parameter.rb +3 -2
- data/modules/passive/multiple_server_headers.rb +4 -3
- data/modules/passive/possible_login.rb +3 -2
- data/modules/passive/redirect_url.rb +3 -2
- data/modules/passive/redirectionz.rb +6 -3
- data/modules/passive/xss_dom.rb +16 -9
- data/plugins/catalog/catalog.rb +119 -193
- data/plugins/crawler/crawler.rb +4 -3
- data/plugins/crawler/gui/auth_frame.rb +3 -2
- data/plugins/crawler/gui/crawler_gui.rb +3 -2
- data/plugins/crawler/gui/general_settings_frame.rb +3 -2
- data/plugins/crawler/gui/hooks_frame.rb +3 -2
- data/plugins/crawler/gui/scope_frame.rb +3 -2
- data/plugins/crawler/gui/settings_tabbook.rb +3 -2
- data/plugins/crawler/gui/status_frame.rb +3 -2
- data/plugins/crawler/gui.rb +3 -2
- data/plugins/crawler/lib/bags.rb +3 -2
- data/plugins/crawler/lib/constants.rb +3 -2
- data/plugins/crawler/lib/engine.rb +3 -2
- data/plugins/crawler/lib/grabber.rb +3 -2
- data/plugins/crawler/lib/uri_mp.rb +1 -1
- data/plugins/filefinder/filefinder.rb +92 -70
- data/plugins/sqlmap/bin/test.rb +3 -2
- data/plugins/sqlmap/gui/main.rb +3 -2
- data/plugins/sqlmap/gui/options_frame.rb +4 -3
- data/plugins/sqlmap/gui.rb +1 -1
- data/plugins/sqlmap/lib/sqlmap_ctrl.rb +3 -2
- data/plugins/sqlmap/sqlmap.rb +1 -1
- data/plugins/sslchecker/cli/sslchecker_cli.rb +1 -1
- data/plugins/sslchecker/gui/cipher_table.rb +17 -10
- data/plugins/sslchecker/gui/gui.rb +59 -56
- data/plugins/sslchecker/gui/sslchecker.rb +1 -1
- data/plugins/sslchecker/lib/check.rb +43 -18
- data/plugins/wshell/gui/main.rb +130 -0
- data/plugins/wshell/icons/wsh.ico +0 -0
- data/plugins/wshell/lib/core.rb +99 -0
- data/plugins/wshell/wshell.rb +33 -0
- metadata +80 -8
- data/README +0 -26
- data/lib/watobo/core/http_socket.rb +0 -161
- data/lib/watobo/gui/plugin/base.rb +0 -82
@@ -1,7 +1,7 @@
|
|
1
1
|
# .
|
2
2
|
# domino_db.rb
|
3
3
|
#
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
5
|
#
|
6
6
|
# This file is part of WATOBO (Web Application Tool Box)
|
7
7
|
# http://watobo.sourceforge.com
|
@@ -22,18 +22,15 @@
|
|
22
22
|
require 'digest/md5'
|
23
23
|
require 'digest/sha1'
|
24
24
|
|
25
|
-
|
25
|
+
# @private
|
26
|
+
module Watobo#:nodoc: all
|
26
27
|
module Modules
|
27
28
|
module Active
|
28
29
|
module Domino
|
29
30
|
|
30
31
|
|
31
32
|
class Domino_db < Watobo::ActiveCheck
|
32
|
-
|
33
|
-
def initialize(project, prefs={})
|
34
|
-
super(project, prefs)
|
35
|
-
|
36
|
-
@info.update(
|
33
|
+
@info.update(
|
37
34
|
:check_name => 'Lotus Domino DB Enumeration', # name of check which briefly describes functionality, will be used for tree and progress views
|
38
35
|
:description => "Enumeration of well known Domino DBs.", # description of checkfunction
|
39
36
|
:author => "Andreas Schmidt", # author of check
|
@@ -47,6 +44,8 @@ module Watobo
|
|
47
44
|
:type => FINDING_TYPE_HINT # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
48
45
|
)
|
49
46
|
|
47
|
+
def initialize(project, prefs={})
|
48
|
+
super(project, prefs)
|
50
49
|
|
51
50
|
@domino_dbs = []
|
52
51
|
|
@@ -70,7 +69,7 @@ module Watobo
|
|
70
69
|
|
71
70
|
def generateChecks(chat)
|
72
71
|
begin
|
73
|
-
if chat.request.url =~ /(.*)\/\w*\.nsf/ then
|
72
|
+
if chat.request.url.to_s =~ /(.*)\/\w*\.nsf/ then
|
74
73
|
@domino_dbs.each do |db|
|
75
74
|
checker = proc{
|
76
75
|
test_request = nil
|
@@ -78,7 +77,7 @@ module Watobo
|
|
78
77
|
test = chat.copyRequest
|
79
78
|
line = test.shift
|
80
79
|
line.gsub!(/(\w*\.nsf.*) (HTTP\/.*)/, "#{db} \\2")
|
81
|
-
|
80
|
+
# puts line
|
82
81
|
test.unshift line
|
83
82
|
|
84
83
|
test_request,test_response = doRequest(test,:default => true)
|
@@ -88,7 +87,7 @@ module Watobo
|
|
88
87
|
# test_chat = Chat.new(test, test_response, chat.id)
|
89
88
|
if test_response.join =~ /(names\.nsf\?Login)/ # if default db found, check for content
|
90
89
|
addFinding( test_request,test_response,
|
91
|
-
:test_item => chat.request.url,
|
90
|
+
:test_item => chat.request.url.to_s,
|
92
91
|
:check_pattern => "#{db}",
|
93
92
|
:proof_pattern => "#{test_response.status}",
|
94
93
|
:chat=>chat,
|
@@ -98,7 +97,7 @@ module Watobo
|
|
98
97
|
addFinding(test_request,test_response,
|
99
98
|
:check_pattern => "#{db}",
|
100
99
|
:proof_pattern => "#{test_response.status}",
|
101
|
-
:test_item => chat.request.url,
|
100
|
+
:test_item => chat.request.url.to_s,
|
102
101
|
:class => "Lotus Domino: Unprotected Default DB",
|
103
102
|
:type => FINDING_TYPE_VULN,
|
104
103
|
:chat => chat,
|
@@ -0,0 +1,124 @@
|
|
1
|
+
# .
|
2
|
+
# custom_errors.rb
|
3
|
+
#
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
|
+
#
|
6
|
+
# This file is part of WATOBO (Web Application Tool Box)
|
7
|
+
# http://watobo.sourceforge.com
|
8
|
+
#
|
9
|
+
# WATOBO is free software; you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation version 2 of the License.
|
12
|
+
#
|
13
|
+
# WATOBO is distributed in the hope that it will be useful,
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
|
+
# GNU General Public License for more details.
|
17
|
+
#
|
18
|
+
# You should have received a copy of the GNU General Public License
|
19
|
+
# along with WATOBO; if not, write to the Free Software
|
20
|
+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
21
|
+
# .
|
22
|
+
# @private
|
23
|
+
module Watobo#:nodoc: all
|
24
|
+
module Modules
|
25
|
+
module Active
|
26
|
+
module Dotnet
|
27
|
+
#class Dir_indexing < Watobo::Mixin::Session
|
28
|
+
class Custom_errors < Watobo::ActiveCheck
|
29
|
+
@@tested_directories = Hash.new
|
30
|
+
|
31
|
+
@info.update(
|
32
|
+
:check_name => '.NET Custom Error', # name of check which briefly describes functionality, will be used for tree and progress views
|
33
|
+
:description => "This module checks if custom errors messages are used and Stack-Tracing is enabled.", # description of checkfunction
|
34
|
+
:author => "Andreas Schmidt", # author of check
|
35
|
+
:version => "1.0", # check version
|
36
|
+
:check_group => ".NET"
|
37
|
+
)
|
38
|
+
|
39
|
+
@finding.update(
|
40
|
+
:threat => 'Information Disclosure. Internal error messages are exposed to end users.', # thread of vulnerability, e.g. loss of information
|
41
|
+
:class => ".NET: Custom Errors", # vulnerability class, e.g. Stored XSS, SQL-Injection, ...
|
42
|
+
:type => FINDING_TYPE_VULN, # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
43
|
+
:rating => VULN_RATING_INFO
|
44
|
+
)
|
45
|
+
|
46
|
+
def initialize(project, prefs={})
|
47
|
+
super(project, prefs)
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
def generateChecks(chat)
|
54
|
+
|
55
|
+
begin
|
56
|
+
|
57
|
+
if chat.request.url.to_s =~ /\.aspx/ then
|
58
|
+
|
59
|
+
checker = proc {
|
60
|
+
begin
|
61
|
+
test_request = nil
|
62
|
+
test_response = nil
|
63
|
+
|
64
|
+
test = chat.copyRequest
|
65
|
+
test.set_method("POST")
|
66
|
+
|
67
|
+
test.set_content_type("application/x-www-form-urlencoded")
|
68
|
+
test.set_content_length("0")
|
69
|
+
test.setData "__VIEWSTATE=watobo"
|
70
|
+
|
71
|
+
status, test_request, test_response = fileExists?(test)
|
72
|
+
|
73
|
+
if test_response.has_body? and test_response.body =~ /Server Error in/
|
74
|
+
|
75
|
+
puts ".NET Custom Error >> #{test.url.to_s}"
|
76
|
+
|
77
|
+
addFinding( test_request, test_response,
|
78
|
+
:test_item => "__VIEWSTATE",
|
79
|
+
:proof_pattern => Regexp.quote("Server Error in"),
|
80
|
+
:check_pattern => Regexp.quote("__VIEWSTATE"),
|
81
|
+
:chat => chat,
|
82
|
+
:threat => "Information Disclosure: Error messages may disclose potentially sensitive information about the internal implementation of the website.",
|
83
|
+
:title => "[Server Error]"
|
84
|
+
)
|
85
|
+
|
86
|
+
trace_pattern = "customErrors mode=.*RemoteOnly"
|
87
|
+
if test_response.body =~ /#{trace_pattern}/i
|
88
|
+
#puts "STACK-TRACE!!!"
|
89
|
+
addFinding( test_request, test_response,
|
90
|
+
:test_item => "__VIEWSTATE",
|
91
|
+
:proof_pattern => trace_pattern,
|
92
|
+
:check_pattern => Regexp.quote("__VIEWSTATE"),
|
93
|
+
:chat => chat,
|
94
|
+
:threat => "Information Disclosure: A Stack-Trace may disclose potentially sensitive information about the internal implementation of the website.",
|
95
|
+
:title => "[Stack-Trace]",
|
96
|
+
:class => ".NET: Stack-Trace"
|
97
|
+
)
|
98
|
+
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
102
|
+
|
103
|
+
[ test_request, test_response ]
|
104
|
+
|
105
|
+
rescue => bang
|
106
|
+
puts bang
|
107
|
+
puts bang.backtrace if $DEBUG
|
108
|
+
end
|
109
|
+
[ nil, nil ]
|
110
|
+
|
111
|
+
}
|
112
|
+
yield checker
|
113
|
+
end
|
114
|
+
rescue => bang
|
115
|
+
puts "!error in module #{Module.nesting[0].name}"
|
116
|
+
puts bang
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# .
|
2
|
+
# dotnet_files.rb
|
3
|
+
#
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
|
+
#
|
6
|
+
# This file is part of WATOBO (Web Application Tool Box)
|
7
|
+
# http://watobo.sourceforge.com
|
8
|
+
#
|
9
|
+
# WATOBO is free software; you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation version 2 of the License.
|
12
|
+
#
|
13
|
+
# WATOBO is distributed in the hope that it will be useful,
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
|
+
# GNU General Public License for more details.
|
17
|
+
#
|
18
|
+
# You should have received a copy of the GNU General Public License
|
19
|
+
# along with WATOBO; if not, write to the Free Software
|
20
|
+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
21
|
+
# .
|
22
|
+
# @private
|
23
|
+
module Watobo#:nodoc: all
|
24
|
+
module Modules
|
25
|
+
module Active
|
26
|
+
module Dotnet
|
27
|
+
|
28
|
+
#class Dir_indexing < Watobo::Mixin::Session
|
29
|
+
class Dotnet_files < Watobo::ActiveCheck
|
30
|
+
@@tested_directories = Hash.new
|
31
|
+
|
32
|
+
@info.update(
|
33
|
+
:check_name => '.NET Files', # name of check which briefly describes functionality, will be used for tree and progress views
|
34
|
+
:description => "This module checks your application for well known files, e.g. trace.axd.", # description of checkfunction
|
35
|
+
:author => "Andreas Schmidt", # author of check
|
36
|
+
:version => "1.0", # check version
|
37
|
+
:check_group => ".NET"
|
38
|
+
)
|
39
|
+
|
40
|
+
@finding.update(
|
41
|
+
:threat => 'Information Disclosure.', # thread of vulnerability, e.g. loss of information
|
42
|
+
:class => ".NET: Well-Known Files", # vulnerability class, e.g. Stored XSS, SQL-Injection, ...
|
43
|
+
:type => FINDING_TYPE_VULN, # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
44
|
+
:rating => VULN_RATING_INFO
|
45
|
+
)
|
46
|
+
|
47
|
+
def initialize(project, prefs={})
|
48
|
+
super(project, prefs)
|
49
|
+
|
50
|
+
@wnfs = []
|
51
|
+
@wnfs << { :name => "Trace.axd", :pattern => "Trace\.axd.clear=1" }
|
52
|
+
@wnfs << { :name => "elmah.axd", :pattern => "Error log for" }
|
53
|
+
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
def reset()
|
58
|
+
@@tested_directories.clear
|
59
|
+
end
|
60
|
+
|
61
|
+
def generateChecks(chat)
|
62
|
+
|
63
|
+
begin
|
64
|
+
path = chat.request.dir
|
65
|
+
if !@@tested_directories.has_key?(path) then
|
66
|
+
@@tested_directories[path] = true
|
67
|
+
@wnfs.each do |wnf|
|
68
|
+
checker = proc {
|
69
|
+
begin
|
70
|
+
test_request = nil
|
71
|
+
test_response = nil
|
72
|
+
|
73
|
+
test = chat.copyRequest
|
74
|
+
|
75
|
+
test.replaceFileExt(wnf[:name])
|
76
|
+
status, test_request, test_response = fileExists?(test)
|
77
|
+
|
78
|
+
|
79
|
+
if status == true and test_response.has_body?
|
80
|
+
if test_response.body =~ /#{wnf[:pattern]}/
|
81
|
+
addFinding( test_request, test_response,
|
82
|
+
:test_item => "#{wnf[:name]}",
|
83
|
+
:proof_pattern => "#{wnf[:pattern]}",
|
84
|
+
:check_pattern => "#{Regexp.quote(wnf[:name])}",
|
85
|
+
:chat => chat,
|
86
|
+
:threat => "depends on the file ;)",
|
87
|
+
:title => "[#{wnf[:name]}]"
|
88
|
+
)
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
rescue => bang
|
93
|
+
puts bang
|
94
|
+
puts bang.backtrace if $DEBUG
|
95
|
+
end
|
96
|
+
[ test_request, test_response ]
|
97
|
+
|
98
|
+
}
|
99
|
+
yield checker
|
100
|
+
end
|
101
|
+
end
|
102
|
+
rescue => bang
|
103
|
+
puts "!error in module #{Module.nesting[0].name}"
|
104
|
+
puts bang
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# .
|
2
2
|
# lfi_simple.rb
|
3
3
|
#
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
5
|
#
|
6
6
|
# This file is part of WATOBO (Web Application Tool Box)
|
7
7
|
# http://watobo.sourceforge.com
|
@@ -22,18 +22,15 @@
|
|
22
22
|
require 'digest/md5'
|
23
23
|
require 'digest/sha1'
|
24
24
|
|
25
|
-
|
25
|
+
# @private
|
26
|
+
module Watobo#:nodoc: all
|
26
27
|
module Modules
|
27
28
|
module Active
|
28
29
|
module Fileinclusion
|
29
30
|
|
30
31
|
|
31
32
|
class Lfi_simple < Watobo::ActiveCheck
|
32
|
-
|
33
|
-
def initialize(project, prefs={})
|
34
|
-
super(project, prefs)
|
35
|
-
|
36
|
-
@info.update(
|
33
|
+
@info.update(
|
37
34
|
:check_name => 'Local File Inclusion', # name of check which briefly describes functionality, will be used for tree and progress views
|
38
35
|
:description => "Checks for parameters, which can lead to local file inclusion.", # description of checkfunction
|
39
36
|
:author => "Andreas Schmidt", # author of check
|
@@ -47,6 +44,11 @@ module Watobo
|
|
47
44
|
:type => FINDING_TYPE_VULN # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
48
45
|
)
|
49
46
|
|
47
|
+
def initialize(project, prefs={})
|
48
|
+
super(project, prefs)
|
49
|
+
|
50
|
+
|
51
|
+
|
50
52
|
@include_checks = [
|
51
53
|
["etc/passwd",'root:[^:]+:\w+:\w+' ],
|
52
54
|
["etc/passwd%00",'root:[^:]+:\w+:\w+' ],
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# .
|
2
2
|
# jboss_basic.rb
|
3
3
|
#
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
5
|
#
|
6
6
|
# This file is part of WATOBO (Web Application Tool Box)
|
7
7
|
# http://watobo.sourceforge.com
|
@@ -19,7 +19,8 @@
|
|
19
19
|
# along with WATOBO; if not, write to the Free Software
|
20
20
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
21
21
|
# .
|
22
|
-
|
22
|
+
# @private
|
23
|
+
module Watobo#:nodoc: all
|
23
24
|
module Modules
|
24
25
|
module Active
|
25
26
|
module Jboss
|
@@ -27,13 +28,7 @@ module Watobo
|
|
27
28
|
|
28
29
|
class Jboss_basic < Watobo::ActiveCheck
|
29
30
|
|
30
|
-
|
31
|
-
@checked_dirs.clear
|
32
|
-
end
|
33
|
-
|
34
|
-
def initialize(project, prefs={})
|
35
|
-
super(project, prefs)
|
36
|
-
@info.update(
|
31
|
+
@info.update(
|
37
32
|
:check_name => 'Basic JBoss enumeration', # name of check which briefly describes functionality, will be used for tree and progress views
|
38
33
|
:check_group => AC_GROUP_JBOSS,
|
39
34
|
:description => "Check every parameter for SQL-Injection flaws.", # description of checkfunction
|
@@ -47,6 +42,14 @@ module Watobo
|
|
47
42
|
:class => "JBoss-AS (critical)", # vulnerability class, e.g. Stored XSS, SQL-Injection, ...
|
48
43
|
:type => FINDING_TYPE_VULN # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
49
44
|
)
|
45
|
+
|
46
|
+
def reset()
|
47
|
+
@checked_dirs.clear
|
48
|
+
end
|
49
|
+
|
50
|
+
def initialize(project, prefs={})
|
51
|
+
super(project, prefs)
|
52
|
+
|
50
53
|
|
51
54
|
measure = "Remove all unnecessary JBoss-Interfaces like JMX-Console."
|
52
55
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# .
|
2
2
|
# its_commands.rb
|
3
3
|
#
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
5
|
#
|
6
6
|
# This file is part of WATOBO (Web Application Tool Box)
|
7
7
|
# http://watobo.sourceforge.com
|
@@ -19,7 +19,8 @@
|
|
19
19
|
# along with WATOBO; if not, write to the Free Software
|
20
20
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
21
21
|
# .
|
22
|
-
|
22
|
+
# @private
|
23
|
+
module Watobo#:nodoc: all
|
23
24
|
module Modules
|
24
25
|
module Active
|
25
26
|
module Sap
|
@@ -27,12 +28,7 @@ module Watobo
|
|
27
28
|
|
28
29
|
class Its_commands < Watobo::ActiveCheck
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
super(project, prefs)
|
33
|
-
|
34
|
-
|
35
|
-
@info.update(
|
31
|
+
@info.update(
|
36
32
|
:check_name => 'SAP ITS: Default Commands', # name of check which briefly describes functionality, will be used for tree and progress views
|
37
33
|
:description => "Identifies vulnerable SAP ITS commands", # description of checkfunction
|
38
34
|
:author => "Andreas Schmidt", # author of check
|
@@ -46,6 +42,11 @@ module Watobo
|
|
46
42
|
:type => FINDING_TYPE_VULN # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
47
43
|
)
|
48
44
|
|
45
|
+
|
46
|
+
def initialize(project, prefs={})
|
47
|
+
|
48
|
+
super(project, prefs)
|
49
|
+
|
49
50
|
# commands 2d array containing the command name and risk rating
|
50
51
|
@commands=[
|
51
52
|
["AgateInstallCheck", VULN_RATING_LOW],
|
@@ -57,7 +58,7 @@ module Watobo
|
|
57
58
|
def generateChecks(chat)
|
58
59
|
|
59
60
|
begin
|
60
|
-
if chat.request.url =~ /\/wgate\/(\w*)\// then
|
61
|
+
if chat.request.url.to_s =~ /\/wgate\/(\w*)\// then
|
61
62
|
|
62
63
|
@commands.each do |cmd, risk|
|
63
64
|
checker = proc{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# .
|
2
2
|
# its_service_parameter.rb
|
3
3
|
#
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
5
|
#
|
6
6
|
# This file is part of WATOBO (Web Application Tool Box)
|
7
7
|
# http://watobo.sourceforge.com
|
@@ -22,7 +22,8 @@
|
|
22
22
|
require 'digest/md5'
|
23
23
|
require 'digest/sha1'
|
24
24
|
|
25
|
-
|
25
|
+
# @private
|
26
|
+
module Watobo#:nodoc: all
|
26
27
|
module Modules
|
27
28
|
module Active
|
28
29
|
module Sap
|
@@ -30,12 +31,7 @@ module Watobo
|
|
30
31
|
|
31
32
|
class Its_service_parameter < Watobo::ActiveCheck
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
super(project, prefs)
|
36
|
-
|
37
|
-
|
38
|
-
@info.update(
|
34
|
+
@info.update(
|
39
35
|
:check_name => 'SAP ITS: Service Parameters', # name of check which briefly describes functionality, will be used for tree and progress views
|
40
36
|
:description => "Checks SAP ITS services for default parameters.", # description of checkfunction
|
41
37
|
:author => "Andreas Schmidt", # author of check
|
@@ -48,6 +44,11 @@ module Watobo
|
|
48
44
|
:class => "SAP ITS: Service Parameters", # vulnerability class, e.g. Stored XSS, SQL-Injection, ...
|
49
45
|
:type => FINDING_TYPE_HINT # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
50
46
|
)
|
47
|
+
|
48
|
+
def initialize(project,prefs={})
|
49
|
+
|
50
|
+
super(project, prefs)
|
51
|
+
|
51
52
|
|
52
53
|
@default_service_parameters = [
|
53
54
|
["~command","AgateInstallCheck"],
|
@@ -62,7 +63,7 @@ module Watobo
|
|
62
63
|
|
63
64
|
begin
|
64
65
|
|
65
|
-
if chat.request.url =~ /\/wgate\/(\w*)\/!?/ then
|
66
|
+
if chat.request.url.to_s =~ /\/wgate\/(\w*)\/!?/ then
|
66
67
|
@default_service_parameters.each do |sp, val|
|
67
68
|
checker = proc{
|
68
69
|
test_request = nil
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# .
|
2
2
|
# its_services.rb
|
3
3
|
#
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
5
|
#
|
6
6
|
# This file is part of WATOBO (Web Application Tool Box)
|
7
7
|
# http://watobo.sourceforge.com
|
@@ -22,7 +22,8 @@
|
|
22
22
|
require 'digest/md5'
|
23
23
|
require 'digest/sha1'
|
24
24
|
|
25
|
-
|
25
|
+
# @private
|
26
|
+
module Watobo#:nodoc: all
|
26
27
|
module Modules
|
27
28
|
module Active
|
28
29
|
module Sap
|
@@ -30,12 +31,7 @@ module Watobo
|
|
30
31
|
|
31
32
|
class Its_services < Watobo::ActiveCheck
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
super(project, prefs)
|
36
|
-
|
37
|
-
|
38
|
-
@info.update(
|
34
|
+
@info.update(
|
39
35
|
:check_name => 'SAP ITS: Default Services', # name of check which briefly describes functionality, will be used for tree and progress views
|
40
36
|
:description => "Checks SAP ITS System for enabled default services.", # description of checkfunction
|
41
37
|
:author => "Andreas Schmidt", # author of check
|
@@ -48,6 +44,11 @@ module Watobo
|
|
48
44
|
:class => "SAP ITS: Default Services", # vulnerability class, e.g. Stored XSS, SQL-Injection, ...
|
49
45
|
:type => FINDING_TYPE_HINT # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
50
46
|
)
|
47
|
+
|
48
|
+
def initialize(project, prefs={})
|
49
|
+
|
50
|
+
super(project, prefs)
|
51
|
+
|
51
52
|
|
52
53
|
@its_services = [
|
53
54
|
"admin",
|
@@ -60,7 +61,7 @@ module Watobo
|
|
60
61
|
|
61
62
|
begin
|
62
63
|
|
63
|
-
if chat.request.url =~ /\/wgate\/(\w*\/!?)/ then
|
64
|
+
if chat.request.url.to_s =~ /\/wgate\/(\w*\/!?)/ then
|
64
65
|
service_name = $1
|
65
66
|
@its_services.each do |service|
|
66
67
|
checker = proc{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# .
|
2
2
|
# its_xss.rb
|
3
3
|
#
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2013 by siberas, http://www.siberas.de
|
5
5
|
#
|
6
6
|
# This file is part of WATOBO (Web Application Tool Box)
|
7
7
|
# http://watobo.sourceforge.com
|
@@ -22,7 +22,8 @@
|
|
22
22
|
require 'digest/md5'
|
23
23
|
require 'digest/sha1'
|
24
24
|
|
25
|
-
|
25
|
+
# @private
|
26
|
+
module Watobo#:nodoc: all
|
26
27
|
module Modules
|
27
28
|
module Active
|
28
29
|
module Sap
|
@@ -30,12 +31,7 @@ module Watobo
|
|
30
31
|
|
31
32
|
class Its_xss < Watobo::ActiveCheck
|
32
33
|
|
33
|
-
|
34
|
-
@project = project
|
35
|
-
super(project, prefs)
|
36
|
-
|
37
|
-
|
38
|
-
@info.update(
|
34
|
+
@info.update(
|
39
35
|
:check_name => 'SAP ITS: XSS', # name of check which briefly describes functionality, will be used for tree and progress views
|
40
36
|
:description => "Checks for generic XSS flaws in SAP ITS Systems.", # description of checkfunction
|
41
37
|
:author => "Andreas Schmidt", # author of check
|
@@ -48,6 +44,11 @@ module Watobo
|
|
48
44
|
:class => "SAP ITS: XSS", # vulnerability class, e.g. Stored XSS, SQL-Injection, ...
|
49
45
|
:type => FINDING_TYPE_HINT # FINDING_TYPE_HINT, FINDING_TYPE_INFO, FINDING_TYPE_VULN
|
50
46
|
)
|
47
|
+
|
48
|
+
def initialize(project, prefs={})
|
49
|
+
@project = project
|
50
|
+
super(project, prefs)
|
51
|
+
|
51
52
|
end
|
52
53
|
|
53
54
|
def generateChecks(chat)
|
@@ -57,7 +58,7 @@ module Watobo
|
|
57
58
|
#
|
58
59
|
begin
|
59
60
|
|
60
|
-
if chat.request.url =~ /!$/ then
|
61
|
+
if chat.request.url.to_s =~ /!$/ then
|
61
62
|
checker = proc{
|
62
63
|
test = chat.copyRequest
|
63
64
|
new_p = "~urlmime"
|
@@ -69,7 +70,7 @@ module Watobo
|
|
69
70
|
if test_response.join =~ /watobo/i then
|
70
71
|
#test_chat = Chat.new(test,test_response,chat.id)
|
71
72
|
addFinding(test_request,test_response,
|
72
|
-
:test_item => chat.request.url,
|
73
|
+
:test_item => chat.request.url.to_s,
|
73
74
|
:check_pattern => "#{new_p}",
|
74
75
|
:proof_pattern => "#{new_v}",
|
75
76
|
:chat => chat,
|