dradis-zap 3.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/issue_template.md +16 -0
- data/.github/pull_request_template.md +36 -0
- data/.gitignore +12 -0
- data/CHANGELOG.md +51 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +23 -0
- data/LICENSE +339 -0
- data/README.md +36 -0
- data/Rakefile +1 -0
- data/dradis-zap.gemspec +35 -0
- data/lib/dradis-zap.rb +7 -0
- data/lib/dradis/plugins/zap.rb +11 -0
- data/lib/dradis/plugins/zap/engine.rb +9 -0
- data/lib/dradis/plugins/zap/field_processor.rb +25 -0
- data/lib/dradis/plugins/zap/gem_version.rb +19 -0
- data/lib/dradis/plugins/zap/importer.rb +61 -0
- data/lib/dradis/plugins/zap/version.rb +13 -0
- data/lib/tasks/thorfile.rb +20 -0
- data/spec/fixtures/files/ZAP_2.4.3_report-merged.xml +844 -0
- data/spec/fixtures/files/ZAP_2.4.3_report-unmerged.xml +4397 -0
- data/templates/evidence.fields +3 -0
- data/templates/evidence.sample +14 -0
- data/templates/evidence.template +7 -0
- data/templates/issue.fields +12 -0
- data/templates/issue.sample +21 -0
- data/templates/issue.template +30 -0
- metadata +156 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
<instance>
|
2
|
+
<uri>http://localhost:8080/bodgeit/advanced.jsp</uri>
|
3
|
+
<param>product</param>
|
4
|
+
<attack>POST http://localhost:8080/bodgeit/advanced.jsp HTTP/1.1
|
5
|
+
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
|
6
|
+
Pragma: no-cache
|
7
|
+
Cache-Control: no-cache
|
8
|
+
Content-Type: application/x-www-form-urlencoded
|
9
|
+
Content-Length: 2143
|
10
|
+
Referer: http://localhost:8080/bodgeit/advanced.jsp
|
11
|
+
Host: localhost:8080
|
12
|
+
|
13
|
+
</attack>
|
14
|
+
</instance>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<alertitem>
|
2
|
+
<pluginid>40018</pluginid>
|
3
|
+
<alert>SQL Injection</alert>
|
4
|
+
<riskcode>3</riskcode>
|
5
|
+
<confidence>2</confidence>
|
6
|
+
<riskdesc>High (Medium)</riskdesc>
|
7
|
+
<desc><p>SQL injection may be possible.</p></desc>
|
8
|
+
<instances>
|
9
|
+
<instance>
|
10
|
+
<uri>http://localhost:8080/bodgeit/basket.jsp</uri>
|
11
|
+
<param>productid</param>
|
12
|
+
<attack>5-2</attack>
|
13
|
+
</instance>
|
14
|
+
</instances>
|
15
|
+
<count>1</count>
|
16
|
+
<solution><p>Do not trust client side input, even if there is client side validation in place. </p><p>In general, type check all data on the server side.</p><p>If the application uses JDBC, use PreparedStatement or CallableStatement, with parameters passed by '?'</p><p>If the application uses ASP, use ADO Command Objects with strong type checking and parameterized queries.</p><p>If database Stored Procedures can be used, use them.</p><p>Do *not* concatenate strings into queries in the stored procedure, or use 'exec', 'exec immediate', or equivalent functionality!</p><p>Do not create dynamic SQL queries using simple string concatenation.</p><p>Escape all data received from the client.</p><p>Apply a 'whitelist' of allowed characters, or a 'blacklist' of disallowed characters in user input.</p><p>Apply the principle of least privilege by using the least privileged database user possible.</p><p>In particular, avoid using the 'sa' or 'db-owner' database users. This does not eliminate SQL injection, but minimizes its impact.</p><p>Grant the minimum database access that is necessary for the application.</p></solution>
|
17
|
+
<otherinfo><p>The original page results were successfully replicated using the expression [5-2] as the parameter value</p><p>The parameter value being modified was NOT stripped from the HTML output for the purposes of the comparison</p></otherinfo>
|
18
|
+
<reference><p>https://www.owasp.org/index.php/Top_10_2010-A1</p><p>https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet</p></reference>
|
19
|
+
<cweid>89</cweid>
|
20
|
+
<wascid>19</wascid>
|
21
|
+
</alertitem>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#[Title]#
|
2
|
+
%issue.alert%
|
3
|
+
|
4
|
+
|
5
|
+
#[Risk]#
|
6
|
+
%issue.riskdesc%
|
7
|
+
|
8
|
+
|
9
|
+
#[Confidence]#
|
10
|
+
%issue.confidence%
|
11
|
+
|
12
|
+
|
13
|
+
#[Description]#
|
14
|
+
%issue.desc%
|
15
|
+
|
16
|
+
|
17
|
+
#[Solution]#
|
18
|
+
%issue.solution%
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
#[OtherInfo]#
|
23
|
+
%issue.otherinfo%
|
24
|
+
|
25
|
+
|
26
|
+
#[References]#
|
27
|
+
%issue.reference%
|
28
|
+
|
29
|
+
CWE: %issue.cweid%
|
30
|
+
WASC: %issue.wascid%
|
metadata
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dradis-zap
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.18.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel Martin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-07-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: dradis-plugins
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.6'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.6'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: combustion
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.5.2
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.5.2
|
97
|
+
description: This add-on allows you to upload and parse output produced from the Zed
|
98
|
+
Attack Proxy (ZAP) into Dradis.
|
99
|
+
email:
|
100
|
+
- etd@nomejortu.com
|
101
|
+
executables: []
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".github/issue_template.md"
|
106
|
+
- ".github/pull_request_template.md"
|
107
|
+
- ".gitignore"
|
108
|
+
- CHANGELOG.md
|
109
|
+
- CONTRIBUTING.md
|
110
|
+
- Gemfile
|
111
|
+
- LICENSE
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- dradis-zap.gemspec
|
115
|
+
- lib/dradis-zap.rb
|
116
|
+
- lib/dradis/plugins/zap.rb
|
117
|
+
- lib/dradis/plugins/zap/engine.rb
|
118
|
+
- lib/dradis/plugins/zap/field_processor.rb
|
119
|
+
- lib/dradis/plugins/zap/gem_version.rb
|
120
|
+
- lib/dradis/plugins/zap/importer.rb
|
121
|
+
- lib/dradis/plugins/zap/version.rb
|
122
|
+
- lib/tasks/thorfile.rb
|
123
|
+
- spec/fixtures/files/ZAP_2.4.3_report-merged.xml
|
124
|
+
- spec/fixtures/files/ZAP_2.4.3_report-unmerged.xml
|
125
|
+
- templates/evidence.fields
|
126
|
+
- templates/evidence.sample
|
127
|
+
- templates/evidence.template
|
128
|
+
- templates/issue.fields
|
129
|
+
- templates/issue.sample
|
130
|
+
- templates/issue.template
|
131
|
+
homepage: http://dradisframework.org
|
132
|
+
licenses:
|
133
|
+
- GPL-2
|
134
|
+
metadata: {}
|
135
|
+
post_install_message:
|
136
|
+
rdoc_options: []
|
137
|
+
require_paths:
|
138
|
+
- lib
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
requirements: []
|
150
|
+
rubygems_version: 3.1.2
|
151
|
+
signing_key:
|
152
|
+
specification_version: 4
|
153
|
+
summary: ZAP add-on for the Dradis Framework.
|
154
|
+
test_files:
|
155
|
+
- spec/fixtures/files/ZAP_2.4.3_report-merged.xml
|
156
|
+
- spec/fixtures/files/ZAP_2.4.3_report-unmerged.xml
|