-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathzap_sample.xml
107 lines (107 loc) · 6.63 KB
/
zap_sample.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0"?><OWASPZAPReport version="2.7.0" generated="Tue, 17 Apr 2018 07:18:05">
<site name="http://127.0.0.1:8080" host="127.0.0.1" port="8080" ssl="false"><alerts><alertitem>
<pluginid>10016</pluginid>
<alert>Web Browser XSS Protection Not Enabled</alert>
<name>Web Browser XSS Protection Not Enabled</name>
<riskcode>1</riskcode>
<confidence>2</confidence>
<riskdesc>Low (Medium)</riskdesc>
<desc><p>Web Browser XSS Protection is not enabled, or is disabled by the configuration of the 'X-XSS-Protection' HTTP response header on the web server</p></desc>
<instances>
<instance>
<uri>http://127.0.0.1:8080/sitemap.xml</uri>
<method>GET</method>
<param>X-XSS-Protection</param>
</instance>
<instance>
<uri>http://127.0.0.1:8080/robots.txt</uri>
<method>GET</method>
<param>X-XSS-Protection</param>
</instance>
<instance>
<uri>http://127.0.0.1:8080/</uri>
<method>GET</method>
<param>X-XSS-Protection</param>
</instance>
</instances>
<count>3</count>
<solution><p>Ensure that the web browser's XSS filter is enabled, by setting the X-XSS-Protection HTTP response header to '1'.</p></solution>
<otherinfo><p>The X-XSS-Protection HTTP response header allows the web server to enable or disable the web browser's XSS protection mechanism. The following values would attempt to enable it: </p><p>X-XSS-Protection: 1; mode=block</p><p>X-XSS-Protection: 1; report=http://www.example.com/xss</p><p>The following values would disable it:</p><p>X-XSS-Protection: 0</p><p>The X-XSS-Protection HTTP response header is currently supported on Internet Explorer, Chrome and Safari (WebKit).</p><p>Note that this alert is only raised if the response body could potentially contain an XSS payload (with a text-based content type, with a non-zero length).</p></otherinfo>
<reference><p>https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet</p><p>https://blog.veracode.com/2014/03/guidelines-for-setting-security-headers/</p></reference>
<cweid>933</cweid>
<wascid>14</wascid>
<sourceid>3</sourceid>
</alertitem>
<alertitem>
<pluginid>10021</pluginid>
<alert>X-Content-Type-Options Header Missing</alert>
<name>X-Content-Type-Options Header Missing</name>
<riskcode>1</riskcode>
<confidence>2</confidence>
<riskdesc>Low (Medium)</riskdesc>
<desc><p>The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.</p></desc>
<instances>
<instance>
<uri>http://127.0.0.1:8080/</uri>
<method>GET</method>
<param>X-Content-Type-Options</param>
</instance>
<instance>
<uri>http://127.0.0.1:8080/css/webswing.css</uri>
<method>GET</method>
<param>X-Content-Type-Options</param>
</instance>
</instances>
<count>2</count>
<solution><p>Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages.</p><p>If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.</p></solution>
<otherinfo><p>This issue still applies to error type pages (401, 403, 500, etc) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type.</p><p>At "High" threshold this scanner will not alert on client or server error responses.</p></otherinfo>
<reference><p>http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx</p><p>https://www.owasp.org/index.php/List_of_useful_HTTP_headers</p></reference>
<cweid>16</cweid>
<wascid>15</wascid>
<sourceid>3</sourceid>
</alertitem>
<alertitem>
<pluginid>10020</pluginid>
<alert>X-Frame-Options Header Not Set</alert>
<name>X-Frame-Options Header Not Set</name>
<riskcode>2</riskcode>
<confidence>2</confidence>
<riskdesc>Medium (Medium)</riskdesc>
<desc><p>X-Frame-Options header is not included in the HTTP response to protect against 'ClickJacking' attacks.</p></desc>
<instances>
<instance>
<uri>http://127.0.0.1:8080/</uri>
<method>GET</method>
<param>X-Frame-Options</param>
</instance>
</instances>
<count>1</count>
<solution><p>Most modern Web browsers support the X-Frame-Options HTTP header. Ensure it's set on all web pages returned by your site (if you expect the page to be framed only by pages on your server (e.g. it's part of a FRAMESET) then you'll want to use SAMEORIGIN, otherwise if you never expect the page to be framed, you should use DENY. ALLOW-FROM allows specific websites to frame the web page in supported web browsers).</p></solution>
<reference><p>http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx</p></reference>
<cweid>16</cweid>
<wascid>15</wascid>
<sourceid>3</sourceid>
</alertitem>
<alertitem>
<pluginid>0</pluginid>
<alert>Directory Browsing</alert>
<name>Directory Browsing</name>
<riskcode>2</riskcode>
<confidence>2</confidence>
<riskdesc>Medium (Medium)</riskdesc>
<desc><p>It is possible to view the directory listing. Directory listing may reveal hidden scripts, include files , backup source files etc which can be accessed to read sensitive information.</p></desc>
<instances>
<instance>
<uri>http://127.0.0.1:8080/css/</uri>
<method>GET</method>
<attack>Parent Directory</attack>
</instance>
</instances>
<count>1</count>
<solution><p>Disable directory browsing. If this is required, make sure the listed files does not induce risks.</p></solution>
<reference><p>http://httpd.apache.org/docs/mod/core.html#options</p><p>http://alamo.satlug.org/pipermail/satlug/2002-February/000053.html</p><p></p></reference>
<cweid>548</cweid>
<wascid>48</wascid>
<sourceid>1</sourceid>
</alertitem>
</alerts></site></OWASPZAPReport>