arachni 1.1 → 1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +159 -0
  3. data/LICENSE.md +126 -196
  4. data/README.md +32 -24
  5. data/arachni.gemspec +7 -7
  6. data/components/checks/active/code_injection_timing.rb +3 -3
  7. data/components/checks/active/csrf.rb +2 -2
  8. data/components/checks/active/file_inclusion.rb +6 -7
  9. data/components/checks/active/os_cmd_injection.rb +3 -3
  10. data/components/checks/active/path_traversal.rb +7 -7
  11. data/components/checks/active/response_splitting.rb +9 -4
  12. data/components/checks/active/session_fixation.rb +7 -3
  13. data/components/checks/active/source_code_disclosure.rb +5 -5
  14. data/components/checks/active/unvalidated_redirect.rb +12 -3
  15. data/components/checks/active/unvalidated_redirect_dom.rb +3 -3
  16. data/components/checks/active/xss.rb +23 -10
  17. data/components/checks/active/xss_dom_inputs.rb +113 -11
  18. data/components/checks/active/xxe.rb +3 -3
  19. data/components/checks/passive/backdoors.rb +6 -5
  20. data/components/checks/passive/backup_directories.rb +6 -6
  21. data/components/checks/passive/backup_files.rb +6 -6
  22. data/components/checks/passive/common_admin_interfaces.rb +58 -0
  23. data/components/checks/passive/common_admin_interfaces/admin-panels.txt +49 -0
  24. data/components/checks/passive/common_directories/directories.txt +0 -16
  25. data/components/checks/passive/common_files.rb +6 -5
  26. data/components/checks/passive/common_files/filenames.txt +0 -2
  27. data/components/checks/passive/directory_listing.rb +6 -6
  28. data/components/checks/passive/grep/cookie_set_for_parent_domain.rb +3 -3
  29. data/components/checks/passive/grep/hsts.rb +6 -3
  30. data/components/checks/passive/grep/http_only_cookies.rb +3 -3
  31. data/components/checks/passive/grep/insecure_cookies.rb +2 -2
  32. data/components/checks/passive/grep/insecure_cors_policy.rb +6 -4
  33. data/components/checks/passive/grep/x_frame_options.rb +6 -4
  34. data/components/checks/passive/htaccess_limit.rb +6 -2
  35. data/components/checks/passive/http_put.rb +8 -4
  36. data/components/checks/passive/interesting_responses.rb +3 -2
  37. data/components/checks/passive/localstart_asp.rb +6 -2
  38. data/components/checks/passive/origin_spoof_access_restriction_bypass.rb +5 -1
  39. data/components/checks/passive/xst.rb +6 -2
  40. data/components/fingerprinters/frameworks/aspx_mvc.rb +43 -0
  41. data/components/fingerprinters/frameworks/cakephp.rb +28 -0
  42. data/components/fingerprinters/frameworks/cherrypy.rb +31 -0
  43. data/components/fingerprinters/frameworks/django.rb +33 -0
  44. data/components/fingerprinters/frameworks/jsf.rb +30 -0
  45. data/components/fingerprinters/frameworks/rack.rb +5 -7
  46. data/components/fingerprinters/frameworks/rails.rb +43 -0
  47. data/components/fingerprinters/languages/aspx.rb +11 -11
  48. data/components/fingerprinters/languages/{jsp.rb → java.rb} +11 -7
  49. data/components/fingerprinters/languages/php.rb +6 -6
  50. data/components/fingerprinters/languages/python.rb +14 -6
  51. data/components/fingerprinters/languages/ruby.rb +3 -5
  52. data/components/fingerprinters/servers/apache.rb +5 -4
  53. data/components/fingerprinters/servers/gunicorn.rb +33 -0
  54. data/components/fingerprinters/servers/jetty.rb +1 -1
  55. data/components/fingerprinters/servers/tomcat.rb +11 -4
  56. data/components/path_extractors/anchors.rb +5 -12
  57. data/components/path_extractors/areas.rb +5 -13
  58. data/components/path_extractors/comments.rb +5 -3
  59. data/components/path_extractors/data_url.rb +21 -0
  60. data/components/path_extractors/forms.rb +5 -13
  61. data/components/path_extractors/frames.rb +6 -13
  62. data/components/path_extractors/generic.rb +3 -12
  63. data/components/path_extractors/links.rb +5 -13
  64. data/components/path_extractors/meta_refresh.rb +5 -13
  65. data/components/path_extractors/scripts.rb +8 -14
  66. data/components/plugins/autologin.rb +17 -5
  67. data/components/plugins/defaults/meta/remedies/discovery.rb +11 -29
  68. data/components/plugins/login_script.rb +40 -10
  69. data/components/plugins/metrics.rb +235 -0
  70. data/components/plugins/proxy.rb +21 -4
  71. data/components/plugins/proxy/panel/page_accordion.html.erb +34 -2
  72. data/components/plugins/restrict_to_dom_state.rb +70 -0
  73. data/components/plugins/vector_feed.rb +38 -9
  74. data/components/reporters/plugin_formatters/html/metrics.rb +290 -0
  75. data/components/reporters/plugin_formatters/stdout/metrics.rb +80 -0
  76. data/components/reporters/plugin_formatters/xml/metrics.rb +29 -0
  77. data/components/reporters/stdout.rb +4 -2
  78. data/components/reporters/xml.rb +4 -4
  79. data/components/reporters/xml/schema.xsd +95 -0
  80. data/lib/arachni.rb +2 -0
  81. data/lib/arachni/browser.rb +132 -77
  82. data/lib/arachni/browser/javascript.rb +173 -45
  83. data/lib/arachni/browser/javascript/scripts/dom_monitor.js +81 -6
  84. data/lib/arachni/browser/javascript/scripts/taint_tracer.js +31 -3
  85. data/lib/arachni/browser_cluster.rb +41 -15
  86. data/lib/arachni/browser_cluster/job.rb +4 -0
  87. data/lib/arachni/browser_cluster/jobs/resource_exploration.rb +0 -9
  88. data/lib/arachni/browser_cluster/worker.rb +8 -5
  89. data/lib/arachni/check/auditor.rb +20 -8
  90. data/lib/arachni/check/base.rb +38 -6
  91. data/lib/arachni/element/base.rb +18 -1
  92. data/lib/arachni/element/capabilities/analyzable/differential.rb +0 -1
  93. data/lib/arachni/element/capabilities/analyzable/taint.rb +40 -10
  94. data/lib/arachni/element/capabilities/analyzable/timeout.rb +27 -23
  95. data/lib/arachni/element/capabilities/auditable/dom.rb +22 -0
  96. data/lib/arachni/element/capabilities/inputtable.rb +6 -2
  97. data/lib/arachni/element/capabilities/submittable.rb +1 -1
  98. data/lib/arachni/element/cookie.rb +37 -23
  99. data/lib/arachni/element/cookie/capabilities/mutable.rb +6 -6
  100. data/lib/arachni/element/cookie/dom.rb +0 -8
  101. data/lib/arachni/element/form.rb +28 -14
  102. data/lib/arachni/element/form/capabilities/auditable.rb +2 -2
  103. data/lib/arachni/element/form/capabilities/mutable.rb +5 -5
  104. data/lib/arachni/element/form/dom.rb +0 -8
  105. data/lib/arachni/element/generic_dom.rb +1 -1
  106. data/lib/arachni/element/json.rb +2 -1
  107. data/lib/arachni/element/json/capabilities/inputtable.rb +6 -6
  108. data/lib/arachni/element/json/capabilities/mutable.rb +1 -1
  109. data/lib/arachni/element/link.rb +13 -16
  110. data/lib/arachni/element/link/dom.rb +1 -14
  111. data/lib/arachni/element/link_template.rb +3 -2
  112. data/lib/arachni/element/link_template/dom.rb +0 -16
  113. data/lib/arachni/element/server.rb +51 -9
  114. data/lib/arachni/element/xml.rb +1 -0
  115. data/lib/arachni/ethon/easy.rb +4 -1
  116. data/lib/arachni/framework/parts/audit.rb +26 -77
  117. data/lib/arachni/framework/parts/browser.rb +50 -55
  118. data/lib/arachni/framework/parts/check.rb +4 -3
  119. data/lib/arachni/framework/parts/data.rb +41 -6
  120. data/lib/arachni/framework/parts/state.rb +16 -7
  121. data/lib/arachni/http/client.rb +66 -38
  122. data/lib/arachni/http/client/dynamic_404_handler.rb +46 -14
  123. data/lib/arachni/http/headers.rb +22 -10
  124. data/lib/arachni/http/proxy_server.rb +67 -22
  125. data/lib/arachni/http/proxy_server/ssl-interceptor-cacert.pem +34 -0
  126. data/lib/arachni/http/proxy_server/ssl-interceptor-cakey.pem +51 -0
  127. data/lib/arachni/http/request.rb +71 -18
  128. data/lib/arachni/issue.rb +17 -3
  129. data/lib/arachni/option_groups/browser_cluster.rb +34 -1
  130. data/lib/arachni/option_groups/http.rb +1 -1
  131. data/lib/arachni/page.rb +26 -13
  132. data/lib/arachni/page/dom/transition.rb +2 -2
  133. data/lib/arachni/parser.rb +28 -11
  134. data/lib/arachni/platform/fingerprinter.rb +5 -0
  135. data/lib/arachni/platform/manager.rb +65 -32
  136. data/lib/arachni/plugin/base.rb +8 -0
  137. data/lib/arachni/processes/instances.rb +25 -11
  138. data/lib/arachni/reporter/manager.rb +2 -2
  139. data/lib/arachni/rpc/client/instance.rb +4 -0
  140. data/lib/arachni/rpc/server/framework/master.rb +3 -3
  141. data/lib/arachni/rpc/server/framework/multi_instance.rb +0 -8
  142. data/lib/arachni/rpc/server/instance.rb +2 -1
  143. data/lib/arachni/ruby/array.rb +5 -0
  144. data/lib/arachni/ruby/hash.rb +5 -0
  145. data/lib/arachni/ruby/string.rb +2 -3
  146. data/lib/arachni/session.rb +32 -6
  147. data/lib/arachni/state/framework.rb +6 -2
  148. data/lib/arachni/support/cache.rb +1 -0
  149. data/lib/arachni/support/cache/base.rb +12 -8
  150. data/lib/arachni/support/cache/least_recently_pushed.rb +29 -0
  151. data/lib/arachni/support/cache/least_recently_used.rb +5 -8
  152. data/lib/arachni/support/cache/preference.rb +1 -1
  153. data/lib/arachni/support/cache/random_replacement.rb +1 -25
  154. data/lib/arachni/support/database/queue.rb +21 -8
  155. data/lib/arachni/support/lookup/base.rb +7 -1
  156. data/lib/arachni/support/mixins/observable.rb +3 -1
  157. data/lib/arachni/support/profiler.rb +51 -10
  158. data/lib/arachni/support/signature.rb +11 -2
  159. data/lib/arachni/trainer.rb +8 -2
  160. data/lib/arachni/uri.rb +28 -25
  161. data/lib/arachni/uri/scope.rb +1 -1
  162. data/lib/arachni/utilities.rb +8 -0
  163. data/lib/arachni/watir/element.rb +1 -1
  164. data/lib/version +1 -1
  165. data/spec/arachni/browser/javascript/dom_monitor_spec.rb +388 -53
  166. data/spec/arachni/browser/javascript/taint_tracer_spec.rb +41 -0
  167. data/spec/arachni/browser/javascript_spec.rb +235 -61
  168. data/spec/arachni/browser_cluster/jobs/resource_exploration_spec.rb +0 -9
  169. data/spec/arachni/browser_cluster_spec.rb +58 -10
  170. data/spec/arachni/browser_spec.rb +170 -26
  171. data/spec/arachni/check/auditor_spec.rb +22 -3
  172. data/spec/arachni/check/base_spec.rb +84 -0
  173. data/spec/arachni/element/body_spec.rb +1 -1
  174. data/spec/arachni/element/capabilities/analyzable/taint_spec.rb +3 -3
  175. data/spec/arachni/element/capabilities/analyzable/timeout_spec.rb +1 -1
  176. data/spec/arachni/element/cookie/dom_spec.rb +0 -9
  177. data/spec/arachni/element/cookie_spec.rb +85 -0
  178. data/spec/arachni/element/form/dom_spec.rb +0 -9
  179. data/spec/arachni/element/form_spec.rb +46 -3
  180. data/spec/arachni/element/json_spec.rb +20 -0
  181. data/spec/arachni/element/link/dom_spec.rb +0 -9
  182. data/spec/arachni/element/link_spec.rb +40 -15
  183. data/spec/arachni/element/link_template/dom_spec.rb +0 -8
  184. data/spec/arachni/element/link_template_spec.rb +2 -6
  185. data/spec/arachni/element/server_spec.rb +94 -8
  186. data/spec/arachni/element/xml_spec.rb +20 -0
  187. data/spec/arachni/framework/parts/audit_spec.rb +12 -14
  188. data/spec/arachni/framework/parts/browser_spec.rb +0 -171
  189. data/spec/arachni/framework/parts/platform_spec.rb +14 -8
  190. data/spec/arachni/framework/parts/report_spec.rb +1 -1
  191. data/spec/arachni/framework/parts/state_spec.rb +0 -9
  192. data/spec/arachni/http/client/dynamic_404_handlers_spec.rb +19 -0
  193. data/spec/arachni/http/client_spec.rb +169 -42
  194. data/spec/arachni/http/headers_spec.rb +18 -0
  195. data/spec/arachni/http/request_spec.rb +23 -0
  196. data/spec/arachni/issue_spec.rb +17 -6
  197. data/spec/arachni/page_spec.rb +22 -2
  198. data/spec/arachni/parser_spec.rb +5 -0
  199. data/spec/arachni/platform/manager_spec.rb +57 -25
  200. data/spec/arachni/reporter/manager_spec.rb +26 -0
  201. data/spec/arachni/rpc/server/active_options_spec.rb +9 -4
  202. data/spec/arachni/state/framework_spec.rb +2 -8
  203. data/spec/arachni/support/cache/least_recently_pushed_spec.rb +90 -0
  204. data/spec/arachni/support/cache/least_recently_used_spec.rb +5 -13
  205. data/spec/arachni/support/database/queue_spec.rb +7 -0
  206. data/spec/arachni/support/mixins/observable_spec.rb +15 -1
  207. data/spec/arachni/trainer_spec.rb +2 -2
  208. data/spec/components/checks/active/code_injection_timing_spec.rb +1 -1
  209. data/spec/components/checks/active/file_inclusion_spec.rb +6 -6
  210. data/spec/components/checks/active/path_traversal_spec.rb +2 -2
  211. data/spec/components/checks/active/source_code_disclosure_spec.rb +2 -2
  212. data/spec/components/checks/active/unvalidated_redirect_spec.rb +6 -6
  213. data/spec/components/checks/active/xss_dom_inputs_spec.rb +3 -5
  214. data/spec/components/checks/active/xss_dom_script_context_spec.rb +1 -1
  215. data/spec/components/checks/active/xss_spec.rb +5 -5
  216. data/spec/components/checks/passive/common_admin_interfaces_spec.rb +15 -0
  217. data/spec/components/checks/passive/interesting_responses_spec.rb +14 -1
  218. data/spec/components/fingerprinters/frameworks/aspx_mvc_spec.rb +31 -0
  219. data/spec/components/fingerprinters/frameworks/cakephp_spec.rb +22 -0
  220. data/spec/components/fingerprinters/frameworks/cherrypy_spec.rb +28 -0
  221. data/spec/components/fingerprinters/frameworks/django_spec.rb +37 -0
  222. data/spec/components/fingerprinters/frameworks/jsf_spec.rb +27 -0
  223. data/spec/components/fingerprinters/frameworks/rack_spec.rb +11 -14
  224. data/spec/components/fingerprinters/frameworks/rails_spec.rb +53 -0
  225. data/spec/components/fingerprinters/languages/asp_spec.rb +7 -9
  226. data/spec/components/fingerprinters/languages/aspx_spec.rb +10 -24
  227. data/spec/components/fingerprinters/languages/java_spec.rb +88 -0
  228. data/spec/components/fingerprinters/languages/php_spec.rb +19 -12
  229. data/spec/components/fingerprinters/languages/python_spec.rb +22 -9
  230. data/spec/components/fingerprinters/languages/ruby.rb +6 -4
  231. data/spec/components/fingerprinters/os/bsd_spec.rb +6 -4
  232. data/spec/components/fingerprinters/os/linux_spec.rb +6 -4
  233. data/spec/components/fingerprinters/os/solaris_spec.rb +6 -4
  234. data/spec/components/fingerprinters/os/unix_spec.rb +6 -4
  235. data/spec/components/fingerprinters/os/windows_spec.rb +6 -4
  236. data/spec/components/fingerprinters/servers/apache_spec.rb +15 -4
  237. data/spec/components/fingerprinters/servers/gunicorn_spec.rb +28 -0
  238. data/spec/components/fingerprinters/servers/iis_spec.rb +6 -6
  239. data/spec/components/fingerprinters/servers/jetty_spec.rb +6 -6
  240. data/spec/components/fingerprinters/servers/nginx_spec.rb +6 -4
  241. data/spec/components/fingerprinters/servers/tomcat_spec.rb +15 -6
  242. data/spec/components/path_extractors/data_url_spec.rb +19 -0
  243. data/spec/components/plugins/autologin_spec.rb +23 -0
  244. data/spec/components/plugins/login_script_spec.rb +112 -24
  245. data/spec/components/plugins/restrict_to_dom_state_spec.rb +16 -0
  246. data/spec/components/plugins/vector_feed_spec.rb +39 -1
  247. data/spec/support/factories/page/dom.rb +9 -4
  248. data/spec/support/factories/page/dom/transition.rb +31 -9
  249. data/spec/support/factories/scan_report.rb +8 -6
  250. data/spec/support/fixtures/empty/placeholder +0 -0
  251. data/spec/support/fixtures/report.afr +0 -0
  252. data/spec/support/fixtures/reporters/manager_spec/error.rb +18 -0
  253. data/spec/support/servers/arachni/browser.rb +117 -11
  254. data/spec/support/servers/arachni/browser/javascript/dom_monitor.rb +148 -4
  255. data/spec/support/servers/arachni/check/auditor.rb +4 -0
  256. data/spec/support/servers/arachni/element/cookie/cookie_dom.rb +1 -1
  257. data/spec/support/servers/arachni/http/client.rb +5 -0
  258. data/spec/support/servers/arachni/http/client/dynamic_404_handler.rb +13 -0
  259. data/spec/support/servers/checks/active/code_injection_timing.rb +1 -1
  260. data/spec/support/servers/checks/active/file_inclusion.rb +2 -2
  261. data/spec/support/servers/checks/active/path_traversal.rb +2 -2
  262. data/spec/support/servers/checks/active/source_code_disclosure.rb +40 -33
  263. data/spec/support/servers/checks/active/trainer_check.rb +9 -10
  264. data/spec/support/servers/checks/active/unvalidated_redirect_dom.rb +7 -4
  265. data/spec/support/servers/checks/active/xss.rb +35 -0
  266. data/spec/support/servers/checks/active/xss_dom.rb +1 -1
  267. data/spec/support/servers/checks/active/xss_dom_inputs.rb +24 -0
  268. data/spec/support/servers/checks/active/xss_dom_script_context.rb +1 -1
  269. data/spec/support/servers/checks/passive/common_admin_interfaces.rb +6 -0
  270. data/spec/support/servers/plugins/autologin.rb +9 -0
  271. data/spec/support/servers/plugins/restrict_to_dom_state.rb +4 -0
  272. data/spec/support/shared/element/base.rb +42 -0
  273. data/spec/support/shared/element/capabilities/auditable.rb +4 -4
  274. data/spec/support/shared/element/capabilities/auditable/dom.rb +26 -0
  275. data/spec/support/shared/element/capabilities/inputtable.rb +16 -11
  276. data/spec/support/shared/element/capabilities/submitable.rb +7 -2
  277. data/spec/support/shared/fingerprinter.rb +8 -0
  278. data/spec/support/shared/path_extractor.rb +1 -1
  279. data/ui/cli/framework.rb +3 -3
  280. data/ui/cli/framework/option_parser.rb +9 -0
  281. data/ui/cli/output.rb +9 -0
  282. data/ui/cli/reporter.rb +5 -2
  283. data/ui/cli/utilities.rb +4 -2
  284. metadata +76 -17
  285. data/lib/arachni/http/proxy_server/ssl-interceptor-cert.pem +0 -34
  286. data/lib/arachni/http/proxy_server/ssl-interceptor-pkey.pem +0 -51
  287. data/spec/components/fingerprinters/languages/jsp_spec.rb +0 -56
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f24a93602ee05ee80f03367f6076200362efff6
4
- data.tar.gz: 0e6c3ee901415342be5661d62bf41925cc6b36f2
3
+ metadata.gz: b7b04bebb490a564d756ded63b03da429d3f96cb
4
+ data.tar.gz: d8b634d80fb6db78621fb574b6c52954da0cb201
5
5
  SHA512:
6
- metadata.gz: ab0b21531f7be52bbe924d1a58f58de719222b72df67431c22898d519dd66bd47f297166b083a68add14cf64ee64ea3497c66350f3c68ec9da0eeda85a56751c
7
- data.tar.gz: 54e4aff6b4437087c2f32919c2eb669648fc88e4fb42c397ec27a64058741af717bd750eb1a0c5d4f1cefa46cfb44750049e024a57c4538409b9686daee17b54
6
+ metadata.gz: 84acf5244c5bb7e1c3dd05e1fe85f27087bbfa447c45dea559a4496fa7947bac87c75dd3c7e5550be5f1c87ed42ca69ffb825b62d3e59a1c789ac55148d8985b
7
+ data.tar.gz: c2c0d02d9194befc03fc37d1b38a036f4ef448336f3c6b3e8ff5ac23140f4fc035e09b698a347a5c47738ec5c6aa25b42692e4979b951756920175fa6e587db9
@@ -1,5 +1,162 @@
1
1
  # ChangeLog
2
2
 
3
+ ## 1.2 _(July 16, 2015)_
4
+
5
+ - Switched to Arachni Public Source License v1.0.
6
+ - `UI`
7
+ - `CLI::Framework`
8
+ - Fixed timeout enforcement.
9
+ - `OptionParser`
10
+ - Added `--browser-cluster-wait-for-element`.
11
+ - `Output`
12
+ - `#error_log_fd` -- Catch `Errno` system errors (like `Too many open files`)
13
+ to avoid crashing.
14
+ - `OptionGroups`
15
+ - `HTTP`
16
+ - `#request_queue_size` -- Lowered from `500` to `100`.
17
+ - `BrowserCluster`
18
+ - `#wait_for_elements` -- Wait for element matching `CSS` to appear when
19
+ visiting a page whose URL matches the `PATTERN`.
20
+ - `#job_timeout` -- Increased from 15 to 25 seconds.
21
+ - `Framework`
22
+ - `#pause` -- Pause is now near instant.
23
+ - `#audit` -- Substantially simplified and optimized the consumption of URL
24
+ and page queues.
25
+ - `#audit_page` -- Application of DOM metadata now happens asynchronously
26
+ and uses the `BrowserCluster` instead of an independent `Browser`.
27
+ - `HTTP`
28
+ - `Client`
29
+ - Updated cookie setting from `OptionGroups::HTTP#cookies` `Hash`.
30
+ - Trigger garbage collections before and after performing the queued
31
+ requests to prevent large RAM spikes.
32
+ - `Dynamic404Handler`
33
+ - Account for cases where the server returns intermittent errors
34
+ that can lead to signature corruption and possibly false positives.
35
+ - Updated training scenarios for cases where `~` are ignored.
36
+ - Disable platform fingerprinting during the gathering of signatures.
37
+ - `Request`
38
+ - Ignore proxy-related traffic (`CONNECT`) when capturing raw traffic data.
39
+ - Added `#fingerprint` option to enable/disable platform fingerprinting
40
+ on a per request basis.
41
+ - `#response_max_size` -- In addition to setting the `maxfilesize` for
42
+ the `Typhoeus::Request`, stream bodies and manually abort if the
43
+ buffer exceeds the limit -- covers cases where no `Content-Type`
44
+ is set.
45
+ - `Headers`
46
+ - Merge values of headers with identical normalized names (i.e.
47
+ `set-cookie` and `Set-Cookie` in the same response).
48
+ - Cache header name canonicalization.
49
+ - `ProxyServer`
50
+ - Cache header name canonicalization.
51
+ - SSL interceptor now automatically generates certificate/key pairs
52
+ based on Arachni CA.
53
+ - `Page`
54
+ - `#has_script?` -- Detect using the body instead of the parsed document.
55
+ - `Parser`
56
+ - Optimized to avoid HTML parsing if it contains no indication of elements.
57
+ - `#headers` -- Updated to include headers from the HTTP request in addition
58
+ to common ones.
59
+ - `Extractors` -- Optimized to avoid HTML parsing if it contains no
60
+ indication of elements.
61
+ - `Element`
62
+ - Cleaned up per-element input value encoding.
63
+ - Enforce a `MAX_SIZE` on acceptable values during parsing.
64
+ - Optimized to avoid HTML parsing if it contains no indication of elements.
65
+ - `Server`
66
+ - `#log_remote_file_if_exists?` -- Flag issues as untrusted at that point
67
+ if possible, instead of at the end of the scan.
68
+ - `#remote_file_exist?` -- Disable platform fingerprinting when dealing
69
+ with a dynamic handler.
70
+ - `Capabilities`
71
+ - `Inputtable` -- Added cache for `#inputtable_id` calculation.
72
+ - `Analyzable`
73
+ - `Taint` -- Added match cache based on signatures and haystacks.
74
+ - `Timeout` -- Override user audit options that don't play nice with this technique.
75
+ - `Check::Auditor`
76
+ - `#log_remote_file` -- Assign `HTTP::Response#status_line` as proof.
77
+ - `Issue`
78
+ - `#signature` -- Store `Regexp` source instead of converting it to String.
79
+ - `Browser`
80
+ - Updated to extract and whitelist CDNs from response bodies.
81
+ - `#cookies` -- Normalize cookies with quoted values since Watir doesn't take
82
+ care of that bit.
83
+ - `Javascript`
84
+ - `#inject` -- Inject `TaintTracer` and `DOMMonitor` update calls in
85
+ requested JS assets.
86
+ - `TaintTracer`
87
+ - Limited data and execution flow sinks to a max size of 50 entries.
88
+ - Don't trace functions known to cause issues:
89
+ - Anonymous functions.
90
+ - `lodash()`
91
+ - `DOMMonitor`
92
+ - Keep track of `jQuery` delegated events.
93
+ - `Support`
94
+ - `Cache`
95
+ - `RandomReplacement` -- Removed extra key `Array`.
96
+ - `Signature` -- Cache token generation.
97
+ - Checks -- Added `Issue#proof` to as many issues as possible.
98
+ - Active
99
+ - `xss`
100
+ - When the case involves payloads landing in `textarea`s, break out of
101
+ them to prevent possible FPs.
102
+ - Added double-encoded payloads.
103
+ - `xss_dom_inputs`
104
+ - Don't perform redundant audits.
105
+ - Don't process custom events.
106
+ - Updated to handle cases where a button needs to be clicked after
107
+ filling in the inputs.
108
+ - Added progress messages.
109
+ - `unvalidated_redirect`
110
+ - Escalated severity to 'High'.
111
+ - Only perform straight payload injections.
112
+ - `unvalidated_redirect_dom`
113
+ - Escalated severity to 'High'.
114
+ - `path_traversal`, `file_inclusion`, `os_cmd_injection`, `xxe`
115
+ - Updated `/etc/passwd` content matching pattern.
116
+ - Passive
117
+ - Added
118
+ - `common_admin_intefaces` -- By Brendan Coles.
119
+ - `backdoors`, `backup_directories`, `backup_files`, `common_files`,
120
+ `directory_listing`
121
+ - Added MVC frameworks as exempt platforms since they do their own routing.
122
+ - Plugins
123
+ - Added
124
+ - `restrict_to_dom_state` -- Restricts the audit to a single page's DOM
125
+ state, based on a URL fragment.
126
+ - `metrics` -- Captures metrics about multiple aspects of the scan and
127
+ the web application.
128
+ - `autologin` -- Updated to fail gracefully in cases of an invisible form DOM elements.
129
+ - `login_script` -- Added support for Javascript login scripts.
130
+ - `proxy`
131
+ - Updated to show JSON and XML inputs in the inspection page.
132
+ - Added output message with instructions for server that use SSL.
133
+ - `vector_feed` -- Updated to support XML and JSON elements.
134
+ - Reporters
135
+ - `xml`
136
+ - Fixed bug causing vector `affected_input_name` to be blank.
137
+ - Fingerprinters -- Optimized across the board to prefer less resource intensive checks.
138
+ - Frameworks
139
+ - Rack -- Expanded signatures.
140
+ - Languages
141
+ - JSP renamed to Java and expanded signatures.
142
+ - PHP -- Expanded signatures.
143
+ - Python -- Expanded signatures.
144
+ - Servers
145
+ - Tomcat -- Expanded signatures.
146
+ - Added
147
+ - Frameworks
148
+ - Django
149
+ - Rails
150
+ - ASP.NET MVC
151
+ - CakePHP
152
+ - JSF
153
+ - CherryPy
154
+ - Servers
155
+ - Gunicorn
156
+ - Path extractors
157
+ - Added
158
+ - `data_url` -- Extracts paths from `data-url` attributes of `a` tags.
159
+
3
160
  ## 1.1 _(May 1, 2015)_
4
161
 
5
162
  - `gemspec` -- Require Ruby >= 2.0.0.
@@ -96,6 +253,8 @@
96
253
  - Added `.full_and_absolute_url?`.
97
254
  - `Browser`
98
255
  - Updated to extract JSON and XML input vectors from HTTP requests.
256
+ - `#cookies` -- Normalize cookies with quoted values since Watir doesn't take
257
+ care of that bit.
99
258
  - `#shutdown` -- Fixed Selenium exceptions on dead browser process.
100
259
  - `#to_page` -- Apply DOM metadata to page elements.
101
260
  - `#spawn_phantomjs` -- Enabled `--disk-cache` option for `phantomjs`.
data/LICENSE.md CHANGED
@@ -2,210 +2,140 @@
2
2
 
3
3
  Copyright 2010-2015 [Tasos Laskos](mailto:tasos.laskos@arachni-scanner.com).
4
4
 
5
- The Arachni Framework (henceforth referred to simply as "Arachni") is dual-licensed.
5
+ ```
6
+ Arachni Public Source License
7
+ Version 1.0, June 2015
6
8
 
7
- Cases that include **commercialization** of Arachni require a commercial,
8
- non-free license. Otherwise, the system can be used under the terms of
9
- Apache License v2.0, found at the bottom of this document.
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
10
 
11
- Cases of **commercialization** are:
11
+ 1. Definitions
12
12
 
13
- * Using Arachni to provide commercial managed/Software-as-a-Service services.
14
- * Distributing Arachni as a commercial product or as part of one.
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
15
 
16
- Cases which **don't** require a commercial license, and thus fall under
17
- the terms of Apache License v2.0, include (but are not limited to):
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
18
 
19
- * Penetration testers (or penetration testing organizations) using Arachni as
20
- part of their assessment toolkit.
21
- * So long as that doesn't conflict with the **commercialization** clause.
22
- * Using Arachni to test your own systems.
23
- * Any non-commercial use of Arachni.
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
26
 
25
- If you need to acquire a commercial license or are unsure about whether you
26
- need to acquire a commercial license, please get in touch, we'll be happy to
27
- clarify things for you and work with you to accommodate your requirements.
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
28
29
 
29
- You can use the [licensing contact form](http://www.arachni-scanner.com/license)
30
- to contact us about these matters.
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
31
33
 
32
- Code contributions will be accepted under the Apache License v2.0.
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
33
38
 
34
- ## Apache License v2.0
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work.
35
42
 
36
- ```
37
- Apache License
38
- Version 2.0, January 2004
39
- http://www.apache.org/licenses/
40
-
41
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
42
-
43
- 1. Definitions.
44
-
45
- "License" shall mean the terms and conditions for use, reproduction,
46
- and distribution as defined by Sections 1 through 9 of this document.
47
-
48
- "Licensor" shall mean the copyright owner or entity authorized by
49
- the copyright owner that is granting the License.
50
-
51
- "Legal Entity" shall mean the union of the acting entity and all
52
- other entities that control, are controlled by, or are under common
53
- control with that entity. For the purposes of this definition,
54
- "control" means (i) the power, direct or indirect, to cause the
55
- direction or management of such entity, whether by contract or
56
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
57
- outstanding shares, or (iii) beneficial ownership of such entity.
58
-
59
- "You" (or "Your") shall mean an individual or Legal Entity
60
- exercising permissions granted by this License.
61
-
62
- "Source" form shall mean the preferred form for making modifications,
63
- including but not limited to software source code, documentation
64
- source, and configuration files.
65
-
66
- "Object" form shall mean any form resulting from mechanical
67
- transformation or translation of a Source form, including but
68
- not limited to compiled object code, generated documentation,
69
- and conversions to other media types.
70
-
71
- "Work" shall mean the work of authorship, whether in Source or
72
- Object form, made available under the License, as indicated by a
73
- copyright notice that is included in or attached to the work
74
- (an example is provided in the Appendix below).
75
-
76
- "Derivative Works" shall mean any work, whether in Source or Object
77
- form, that is based on (or derived from) the Work and for which the
78
- editorial revisions, annotations, elaborations, or other modifications
79
- represent, as a whole, an original work of authorship. For the purposes
80
- of this License, Derivative Works shall not include works that remain
81
- separable from, or merely link (or bind by name) to the interfaces of,
82
- the Work and Derivative Works thereof.
83
-
84
- "Contribution" shall mean any work of authorship, including
85
- the original version of the Work and any modifications or additions
86
- to that Work or Derivative Works thereof, that is intentionally
87
- submitted to Licensor for inclusion in the Work by the copyright owner
88
- or by an individual or Legal Entity authorized to submit on behalf of
89
- the copyright owner. For the purposes of this definition, "submitted"
90
- means any form of electronic, verbal, or written communication sent
91
- to the Licensor or its representatives, including but not limited to
92
- communication on electronic mailing lists, source code control systems,
93
- and issue tracking systems that are managed by, or on behalf of, the
94
- Licensor for the purpose of discussing and improving the Work, but
95
- excluding communication that is conspicuously marked or otherwise
96
- designated in writing by the copyright owner as "Not a Contribution."
97
-
98
- "Contributor" shall mean Licensor and any individual or Legal Entity
99
- on behalf of whom a Contribution has been received by Licensor and
100
- subsequently incorporated within the Work.
101
-
102
- 2. Grant of Copyright License. Subject to the terms and conditions of
103
- this License, each Contributor hereby grants to You a perpetual,
104
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
105
- copyright license to reproduce, prepare Derivative Works of,
106
- publicly display, publicly perform, sublicense, and distribute the
107
- Work and such Derivative Works in Source or Object form.
108
-
109
- 3. Grant of Patent License. Subject to the terms and conditions of
110
- this License, each Contributor hereby grants to You a perpetual,
111
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
112
- (except as stated in this section) patent license to make, have made,
113
- use, offer to sell, sell, import, and otherwise transfer the Work,
114
- where such license applies only to those patent claims licensable
115
- by such Contributor that are necessarily infringed by their
116
- Contribution(s) alone or by combination of their Contribution(s)
117
- with the Work to which such Contribution(s) was submitted. If You
118
- institute patent litigation against any entity (including a
119
- cross-claim or counterclaim in a lawsuit) alleging that the Work
120
- or a Contribution incorporated within the Work constitutes direct
121
- or contributory patent infringement, then any patent licenses
122
- granted to You under this License for that Work shall terminate
123
- as of the date such litigation is filed.
124
-
125
- 4. Redistribution. You may reproduce and distribute copies of the
126
- Work or Derivative Works thereof in any medium, with or without
127
- modifications, and in Source or Object form, provided that You
128
- meet the following conditions:
129
-
130
- (a) You must give any other recipients of the Work or
131
- Derivative Works a copy of this License; and
132
-
133
- (b) You must cause any modified files to carry prominent notices
134
- stating that You changed the files; and
135
-
136
- (c) You must retain, in the Source form of any Derivative Works
137
- that You distribute, all copyright, patent, trademark, and
138
- attribution notices from the Source form of the Work,
139
- excluding those notices that do not pertain to any part of
140
- the Derivative Works; and
141
-
142
- (d) If the Work includes a "NOTICE" text file as part of its
143
- distribution, then any Derivative Works that You distribute must
144
- include a readable copy of the attribution notices contained
145
- within such NOTICE file, excluding those notices that do not
146
- pertain to any part of the Derivative Works, in at least one
147
- of the following places: within a NOTICE text file distributed
148
- as part of the Derivative Works; within the Source form or
149
- documentation, if provided along with the Derivative Works; or,
150
- within a display generated by the Derivative Works, if and
151
- wherever such third-party notices normally appear. The contents
152
- of the NOTICE file are for informational purposes only and
153
- do not modify the License. You may add Your own attribution
154
- notices within Derivative Works that You distribute, alongside
155
- or as an addendum to the NOTICE text from the Work, provided
156
- that such additional attribution notices cannot be construed
157
- as modifying the License.
158
-
159
- You may add Your own copyright statement to Your modifications and
160
- may provide additional or different license terms and conditions
161
- for use, reproduction, or distribution of Your modifications, or
162
- for any such Derivative Works as a whole, provided Your use,
163
- reproduction, and distribution of the Work otherwise complies with
164
- the conditions stated in this License.
165
-
166
- 5. Submission of Contributions. Unless You explicitly state otherwise,
167
- any Contribution intentionally submitted for inclusion in the Work
168
- by You to the Licensor shall be under the terms and conditions of
169
- this License, without any additional terms or conditions.
170
- Notwithstanding the above, nothing herein shall supersede or modify
171
- the terms of any separate license agreement you may have executed
172
- with Licensor regarding such Contributions.
173
-
174
- 6. Trademarks. This License does not grant permission to use the trade
175
- names, trademarks, service marks, or product names of the Licensor,
176
- except as required for reasonable and customary use in describing the
177
- origin of the Work and reproducing the content of the NOTICE file.
178
-
179
- 7. Disclaimer of Warranty. Unless required by applicable law or
180
- agreed to in writing, Licensor provides the Work (and each
181
- Contributor provides its Contributions) on an "AS IS" BASIS,
182
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
183
- implied, including, without limitation, any warranties or conditions
184
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
185
- PARTICULAR PURPOSE. You are solely responsible for determining the
186
- appropriateness of using or redistributing the Work and assume any
187
- risks associated with Your exercise of permissions under this License.
188
-
189
- 8. Limitation of Liability. In no event and under no legal theory,
190
- whether in tort (including negligence), contract, or otherwise,
191
- unless required by applicable law (such as deliberate and grossly
192
- negligent acts) or agreed to in writing, shall any Contributor be
193
- liable to You for damages, including any direct, indirect, special,
194
- incidental, or consequential damages of any character arising as a
195
- result of this License or out of the use or inability to use the
196
- Work (including but not limited to damages for loss of goodwill,
197
- work stoppage, computer failure or malfunction, or any and all
198
- other commercial damages or losses), even if such Contributor
199
- has been advised of the possibility of such damages.
200
-
201
- 9. Accepting Warranty or Additional Liability. While redistributing
202
- the Work or Derivative Works thereof, You may choose to offer,
203
- and charge a fee for, acceptance of support, warranty, indemnity,
204
- or other liability obligations and/or rights consistent with this
205
- License. However, in accepting such obligations, You may act only
206
- on Your own behalf and on Your sole responsibility, not on behalf
207
- of any other Contributor, and only if You agree to indemnify,
208
- defend, and hold each Contributor harmless for any liability
209
- incurred by, or claims asserted against, such Contributor by reason
210
- of your accepting any such warranty or additional liability.
43
+ "Contribution" shall mean any work of authorship, including
44
+ the original version of the Work and any modifications or additions
45
+ to that Work, that is intentionally submitted to Licensor for inclusion in
46
+ the Work by the copyright owner or by an individual or Legal Entity
47
+ authorized to submit on behalf of the copyright owner. For the purposes of
48
+ this definition, "submitted" means any form of electronic, verbal, or
49
+ written communication sent to the Licensor or its representatives, including
50
+ but not limited to communication on electronic mailing lists, source code
51
+ control systems, and issue tracking systems that are managed by, or on
52
+ behalf of, the Licensor for the purpose of discussing and improving the Work,
53
+ but excluding communication that is conspicuously marked or otherwise
54
+ designated in writing by the copyright owner as "Not a Contribution."
55
+
56
+ "Contributor" shall mean Licensor and any individual or Legal Entity
57
+ on behalf of whom a Contribution has been received by Licensor and
58
+ subsequently incorporated within the Work.
59
+
60
+ "Commercialization" shall mean intention to use this software for commercial
61
+ advantage or monetary compensation.
62
+
63
+ Cases of commercialization include but are not limited to:
64
+
65
+ 1. Use of the Work to provide commercial managed/Software-as-a-Service services.
66
+ 2. Distribution of the Work as a commercial product or as part of one.
67
+ 3. Use or distribution of the Work as a value added service/product.
68
+
69
+ Exempt cases:
70
+
71
+ 1. Penetration testers (or penetration testing organizations) using
72
+ this Work as part of their manual assessment toolkit.
73
+ 2. Using this Work to assess the security of Your own systems.
74
+
75
+ 2. Basic Permissions
76
+
77
+ Use of the Work is permitted free of charge, provided that said use does not
78
+ involve Commercialization.
79
+
80
+ Any use of the Work, in whole or in part, involving Commercialization, is
81
+ strictly prohibited without the prior written consent of Licensor.
82
+
83
+ Should You require a license that allows for Commercialization, please contact
84
+ Licensor at:
85
+ license@arachni-scanner.com
86
+
87
+ In cases of uncertainty, clarifications can be provided by Licensor on a
88
+ case-by-case basis, please contact:
89
+ license@arachni-scanner.com
90
+
91
+ 3. Redistribution
92
+
93
+ Redistribution is permitted under the following conditions:
94
+
95
+ 1. Unmodified License is provided with the Work.
96
+ 2. Unmodified Copyright notices are provided with the Work.
97
+ 3. Does not conflict with Section 2.
98
+
99
+ 4. Copying
100
+
101
+ Copying is permitted so long as it does not conflict with Section 3.
102
+
103
+ 5. Modification
104
+
105
+ Modification is permitted so long as it does not conflict with Section 3.
106
+
107
+ 6. Submission of Contributions
108
+
109
+ Upon submission, Contributor grants to Licensor a perpetual, worldwide,
110
+ non-exclusive, no-charge, royalty-free, irrevocable copyright and patent license
111
+ to reproduce, publicly display, publicly perform, sublicense, distribute, use,
112
+ offer to sell, sell, import, and otherwise transfer the Contribution in Source
113
+ or Object form.
114
+
115
+ 7. Trademarks
116
+
117
+ This License does not grant permission to use the trade names, trademarks, service
118
+ marks, or product names of the Licensor.
119
+
120
+ 8. Disclaimer of Warranty
121
+
122
+ Unless required by applicable law or agreed to in writing, Licensor provides the
123
+ Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT
124
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without
125
+ limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY,
126
+ or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the
127
+ appropriateness of using or redistributing the Work and assume any risks associated
128
+ with Your exercise of permissions under this License.
129
+
130
+ 9. Limitation of Liability
131
+
132
+ In no event and under no legal theory, whether in tort (including negligence),
133
+ contract, or otherwise, unless required by applicable law (such as deliberate
134
+ and grossly negligent acts) or agreed to in writing, shall any Contributor be
135
+ liable to You for damages, including any direct, indirect, special, incidental,
136
+ or consequential damages of any character arising as a result of this License or
137
+ out of the use or inability to use the Work (including but not limited to damages
138
+ for loss of goodwill, work stoppage, computer failure or malfunction, or any and
139
+ all other commercial damages or losses), even if such Contributor has been advised
140
+ of the possibility of such damages.
211
141
  ```