diff --git a/scanners/kube-hunter/parser/__snapshots__/parser.test.js.snap b/scanners/kube-hunter/parser/__snapshots__/parser.test.js.snap index a989c2d30a..29618bbd39 100644 --- a/scanners/kube-hunter/parser/__snapshots__/parser.test.js.snap +++ b/scanners/kube-hunter/parser/__snapshots__/parser.test.js.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`parses result from kind-1.18-in-cluster-scan correctly 1`] = ` [ diff --git a/scanners/nikto/parser/__snapshots__/parser.test.js.snap b/scanners/nikto/parser/__snapshots__/parser.test.js.snap index 1ec98a0dea..06e6583a2b 100644 --- a/scanners/nikto/parser/__snapshots__/parser.test.js.snap +++ b/scanners/nikto/parser/__snapshots__/parser.test.js.snap @@ -1,4 +1,143 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots + +exports[`parses www.securecodebox.io result file into findings 1`] = ` +[ + { + "attributes": { + "banner": "", + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "3.70.101.28", + ], + "method": "GET", + "niktoId": 287, + "port": 443, + "references": [ + { + "type": "URL", + "value": "https://www.netlify.com/", + }, + ], + }, + "category": "Potential Vulnerability", + "description": null, + "location": "https://www.securecodebox.io/", + "name": "Netlify was identified by the x-nf-request-id header.", + "osi_layer": "NETWORK", + "severity": "HIGH", + }, + { + "attributes": { + "banner": "", + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "3.70.101.28", + ], + "method": "GET", + "niktoId": 999100, + "port": 443, + "references": null, + }, + "category": "Uncommon Header", + "description": null, + "location": "https://www.securecodebox.io/", + "name": "Uncommon header 'cache-status' found, with contents: \\"Netlify Edge\\"; hit.", + "osi_layer": "NETWORK", + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "banner": "", + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "3.70.101.28", + ], + "method": "GET", + "niktoId": 999103, + "port": 443, + "references": [ + { + "type": "URL", + "value": "https://www.netsparker.com/web-vulnerability-scanner/vulnerabilities/missing-content-type-header/", + }, + ], + }, + "category": "X-Content-Type-Options Header", + "description": null, + "location": "https://www.securecodebox.io/", + "name": "The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type.", + "osi_layer": "NETWORK", + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "banner": "", + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "3.70.101.28", + ], + "method": "GET", + "niktoId": 999984, + "port": 443, + "references": [ + { + "type": "URL", + "value": "CVE-2003-1418", + }, + ], + }, + "category": "Nikto Finding", + "description": null, + "location": "https://www.securecodebox.io/", + "name": "Server may leak inodes via ETags, header found with file /, inode: 47d154f7c9e7e369b48dafb5778d36d4, size: ssl, mtime: df.", + "osi_layer": "NETWORK", + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "banner": "", + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "3.70.101.28", + ], + "method": "GET", + "niktoId": 999966, + "port": 443, + "references": [ + { + "type": "URL", + "value": "http://breachattack.com/", + }, + ], + }, + "category": "Nikto Finding", + "description": null, + "location": "https://www.securecodebox.io/", + "name": "The Content-Encoding header is set to \\"deflate\\" which may mean that the server is vulnerable to the BREACH attack.", + "osi_layer": "NETWORK", + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "banner": "", + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "3.70.101.28", + ], + "method": "GET", + "niktoId": 1218, + "port": 443, + "references": null, + }, + "category": "Potential Vulnerability", + "description": null, + "location": "https://www.securecodebox.io/sitemap.xml", + "name": "This gives a nice listing of the site content.", + "osi_layer": "NETWORK", + "severity": "HIGH", + }, +] +`; exports[`parses OWASP Juice Shop result file into findings 1`] = ` [ @@ -4651,142 +4790,3 @@ exports[`parses OWASP Juice Shop result file into findings 1`] = ` }, ] `; - -exports[`parses www.securecodebox.io result file into findings 1`] = ` -[ - { - "attributes": { - "banner": "", - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "3.70.101.28", - ], - "method": "GET", - "niktoId": 287, - "port": 443, - "references": [ - { - "type": "URL", - "value": "https://www.netlify.com/", - }, - ], - }, - "category": "Potential Vulnerability", - "description": null, - "location": "https://www.securecodebox.io/", - "name": "Netlify was identified by the x-nf-request-id header.", - "osi_layer": "NETWORK", - "severity": "HIGH", - }, - { - "attributes": { - "banner": "", - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "3.70.101.28", - ], - "method": "GET", - "niktoId": 999100, - "port": 443, - "references": null, - }, - "category": "Uncommon Header", - "description": null, - "location": "https://www.securecodebox.io/", - "name": "Uncommon header 'cache-status' found, with contents: \\"Netlify Edge\\"; hit.", - "osi_layer": "NETWORK", - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "banner": "", - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "3.70.101.28", - ], - "method": "GET", - "niktoId": 999103, - "port": 443, - "references": [ - { - "type": "URL", - "value": "https://www.netsparker.com/web-vulnerability-scanner/vulnerabilities/missing-content-type-header/", - }, - ], - }, - "category": "X-Content-Type-Options Header", - "description": null, - "location": "https://www.securecodebox.io/", - "name": "The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type.", - "osi_layer": "NETWORK", - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "banner": "", - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "3.70.101.28", - ], - "method": "GET", - "niktoId": 999984, - "port": 443, - "references": [ - { - "type": "URL", - "value": "CVE-2003-1418", - }, - ], - }, - "category": "Nikto Finding", - "description": null, - "location": "https://www.securecodebox.io/", - "name": "Server may leak inodes via ETags, header found with file /, inode: 47d154f7c9e7e369b48dafb5778d36d4, size: ssl, mtime: df.", - "osi_layer": "NETWORK", - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "banner": "", - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "3.70.101.28", - ], - "method": "GET", - "niktoId": 999966, - "port": 443, - "references": [ - { - "type": "URL", - "value": "http://breachattack.com/", - }, - ], - }, - "category": "Nikto Finding", - "description": null, - "location": "https://www.securecodebox.io/", - "name": "The Content-Encoding header is set to \\"deflate\\" which may mean that the server is vulnerable to the BREACH attack.", - "osi_layer": "NETWORK", - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "banner": "", - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "3.70.101.28", - ], - "method": "GET", - "niktoId": 1218, - "port": 443, - "references": null, - }, - "category": "Potential Vulnerability", - "description": null, - "location": "https://www.securecodebox.io/sitemap.xml", - "name": "This gives a nice listing of the site content.", - "osi_layer": "NETWORK", - "severity": "HIGH", - }, -] -`; diff --git a/scanners/nuclei/parser/__snapshots__/parser.test.js.snap b/scanners/nuclei/parser/__snapshots__/parser.test.js.snap index f20ba608c3..7b55065060 100644 --- a/scanners/nuclei/parser/__snapshots__/parser.test.js.snap +++ b/scanners/nuclei/parser/__snapshots__/parser.test.js.snap @@ -1,71 +1,29 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`parses empty result correctly 1`] = `[]`; -exports[`parses secureCodeBox.io result correctly 1`] = ` +exports[`parses the example.com result correctly 1`] = ` [ { "attributes": { "author": [ - "yavolo", - "dwisiswant0", + "socketz", + "geeknik", + "g4l1t0", + "convisoappsec", + "kurohost", + "dawid-czarnecki", + "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "34.159.58.69", - ], - "matched_at": "https://www.securecodebox.io", - "matched_line": null, - "matcher_name": null, - "matcher_status": true, - "metadata": null, - "path": null, - "reference": [ - "https://portswigger.net/web-security/dom-based/controlling-the-web-message-source", - ], - "request": null, - "response": null, - "tags": [ - "xss", - "misc", - ], - "template": "miscellaneous/addeventlistener-detect.yaml", - "template_id": "addeventlistener-detect", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/miscellaneous/addeventlistener-detect.yaml", - "timestamp": "2022-09-09T21:26:27.762236+02:00", - "type": "http", - }, - "category": "addeventlistener-detect", - "description": "The name of the nuclei rule which triggered the finding: addeventlistener-detect", - "identified_at": "2022-09-09T19:26:27.762Z", - "location": "https://www.securecodebox.io", - "name": "DOM EventListener detection", - "references": [ - { - "type": "URL", - "value": "https://portswigger.net/web-security/dom-based/controlling-the-web-message-source", - }, - ], - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "author": [ - "panch0r3d", - ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36' 'https://www.securecodebox.io'", - "extracted_results": [ - "securecodebox@iteratec.com", - ], - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": null, + "matcher_name": "content-security-policy", "matcher_status": true, "metadata": null, "path": null, @@ -73,70 +31,26 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "request": null, "response": null, "tags": [ - "misc", - "email", + "misconfig", + "generic", ], - "template": "miscellaneous/email-extractor.yaml", - "template_id": "email-extractor", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/miscellaneous/email-extractor.yaml", - "timestamp": "2022-09-09T21:26:27.777226+02:00", + "template": "misconfiguration/http-missing-security-headers.yaml", + "template_id": "http-missing-security-headers", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", + "timestamp": "2022-09-09T21:18:55.271592+02:00", "type": "http", }, - "category": "email-extractor", - "description": "The name of the nuclei rule which triggered the finding: email-extractor", - "identified_at": "2022-09-09T19:26:27.777Z", - "location": "https://www.securecodebox.io", - "name": "Email Extractor", + "category": "http-missing-security-headers", + "description": +"This template searches for missing HTTP security headers. The impact of these missing headers can vary. +" +, + "identified_at": "2022-09-09T19:18:55.271Z", + "location": "https://example.com", + "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", }, - { - "attributes": { - "author": [ - "dadevel", - ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/44.0.2403.155 Safari/537.36' 'https://www.securecodebox.io'", - "extracted_results": [ - "Docusaurus v2.0.1", - ], - "hostname": "www.securecodebox.io", - "ip_addresses": [ - "34.159.58.69", - ], - "matched_at": "https://www.securecodebox.io", - "matched_line": null, - "matcher_name": null, - "matcher_status": true, - "metadata": null, - "path": null, - "reference": [ - "https://www.w3schools.com/tags/att_meta_name.asp", - ], - "request": null, - "response": null, - "tags": [ - "tech", - "cms", - ], - "template": "technologies/metatag-cms.yaml", - "template_id": "metatag-cms", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/technologies/metatag-cms.yaml", - "timestamp": "2022-09-09T21:26:28.511351+02:00", - "type": "http", - }, - "category": "metatag-cms", - "description": "Generic CMS Detection using html meta generator tag", - "identified_at": "2022-09-09T19:26:28.511Z", - "location": "https://www.securecodebox.io", - "name": "Metatag CMS Detection", - "references": [ - { - "type": "URL", - "value": "https://www.w3schools.com/tags/att_meta_name.asp", - }, - ], - "severity": "INFORMATIONAL", - }, { "attributes": { "author": [ @@ -148,15 +62,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "referrer-policy", + "matcher_name": "x-permitted-cross-domain-policies", "matcher_status": true, "metadata": null, "path": null, @@ -170,7 +84,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.644349+02:00", + "timestamp": "2022-09-09T21:18:55.272231+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -178,8 +92,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.644Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.272Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -195,15 +109,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "access-control-allow-origin", + "matcher_name": "clear-site-data", "matcher_status": true, "metadata": null, "path": null, @@ -217,7 +131,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.644671+02:00", + "timestamp": "2022-09-09T21:18:55.272358+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -225,8 +139,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.644Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.272Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -242,13 +156,13 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, "matcher_name": "access-control-allow-credentials", "matcher_status": true, @@ -264,7 +178,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.644884+02:00", + "timestamp": "2022-09-09T21:18:55.27242+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -272,8 +186,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.644Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.272Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -289,15 +203,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "access-control-expose-headers", + "matcher_name": "access-control-allow-headers", "matcher_status": true, "metadata": null, "path": null, @@ -311,7 +225,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.644952+02:00", + "timestamp": "2022-09-09T21:18:55.272488+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -319,8 +233,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.644Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.272Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -336,15 +250,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "access-control-allow-methods", + "matcher_name": "permission-policy", "matcher_status": true, "metadata": null, "path": null, @@ -358,7 +272,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.645129+02:00", + "timestamp": "2022-09-09T21:18:55.272559+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -366,8 +280,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.645Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.272Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -383,15 +297,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "x-content-type-options", + "matcher_name": "cross-origin-embedder-policy", "matcher_status": true, "metadata": null, "path": null, @@ -405,7 +319,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.645183+02:00", + "timestamp": "2022-09-09T21:18:55.292757+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -413,8 +327,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.645Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.292Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -430,15 +344,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "x-permitted-cross-domain-policies", + "matcher_name": "cross-origin-resource-policy", "matcher_status": true, "metadata": null, "path": null, @@ -452,7 +366,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.655101+02:00", + "timestamp": "2022-09-09T21:18:55.293626+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -460,8 +374,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.655Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -477,15 +391,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "access-control-max-age", + "matcher_name": "access-control-allow-origin", "matcher_status": true, "metadata": null, "path": null, @@ -499,7 +413,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.659602+02:00", + "timestamp": "2022-09-09T21:18:55.293711+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -507,8 +421,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.659Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -524,15 +438,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "content-security-policy", + "matcher_name": "access-control-expose-headers", "matcher_status": true, "metadata": null, "path": null, @@ -546,7 +460,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.65974+02:00", + "timestamp": "2022-09-09T21:18:55.293768+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -554,8 +468,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.659Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -571,15 +485,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "cross-origin-opener-policy", + "matcher_name": "access-control-max-age", "matcher_status": true, "metadata": null, "path": null, @@ -593,7 +507,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.659816+02:00", + "timestamp": "2022-09-09T21:18:55.293798+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -601,8 +515,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.659Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -618,15 +532,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "x-frame-options", + "matcher_name": "strict-transport-security", "matcher_status": true, "metadata": null, "path": null, @@ -640,7 +554,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.659934+02:00", + "timestamp": "2022-09-09T21:18:55.293859+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -648,8 +562,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.659Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -665,15 +579,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "cross-origin-resource-policy", + "matcher_name": "x-frame-options", "matcher_status": true, "metadata": null, "path": null, @@ -687,7 +601,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.660006+02:00", + "timestamp": "2022-09-09T21:18:55.293899+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -695,8 +609,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.660Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -712,15 +626,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "cross-origin-embedder-policy", + "matcher_name": "x-content-type-options", "matcher_status": true, "metadata": null, "path": null, @@ -734,7 +648,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.660065+02:00", + "timestamp": "2022-09-09T21:18:55.293924+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -742,8 +656,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.660Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -759,15 +673,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "access-control-allow-headers", + "matcher_name": "referrer-policy", "matcher_status": true, "metadata": null, "path": null, @@ -781,7 +695,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.6601+02:00", + "timestamp": "2022-09-09T21:18:55.293951+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -789,8 +703,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.660Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -806,15 +720,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "permission-policy", + "matcher_name": "cross-origin-opener-policy", "matcher_status": true, "metadata": null, "path": null, @@ -828,7 +742,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.660161+02:00", + "timestamp": "2022-09-09T21:18:55.293979+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -836,8 +750,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.660Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.293Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -853,15 +767,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", "extracted_results": null, - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "clear-site-data", + "matcher_name": "access-control-allow-methods", "matcher_status": true, "metadata": null, "path": null, @@ -875,7 +789,7 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:27:13.660239+02:00", + "timestamp": "2022-09-09T21:18:55.294616+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -883,8 +797,8 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:27:13.660Z", - "location": "https://www.securecodebox.io", + "identified_at": "2022-09-09T19:18:55.294Z", + "location": "https://example.com", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -896,55 +810,43 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` ], "curl_command": null, "extracted_results": [ - "docs-securecodebox.netlify.app.", + "example.net", + "example.edu", + "example.com", + "example.org", + "www.example.com", + "www.example.edu", + "www.example.net", + "www.example.org", ], - "hostname": "www.securecodebox.io", - "ip_addresses": [], - "matched_at": "https://www.securecodebox.io", + "hostname": "example.com", + "ip_addresses": [ + "93.184.216.34", + ], + "matched_at": "https://example.com", "matched_line": null, "matcher_name": null, "matcher_status": true, "metadata": null, "path": null, - "reference": [ - "https://www.theregister.com/2021/02/24/dns_cname_tracking/", - "https://www.ionos.com/digitalguide/hosting/technical-matters/cname-record/", - ], + "reference": null, "request": null, "response": null, "tags": [ - "dns", - "cname", + "ssl", ], - "template": "dns/cname-fingerprint.yaml", - "template_id": "cname-fingerprint", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/cname-fingerprint.yaml", - "timestamp": "2022-09-09T21:27:25.325591+02:00", - "type": "dns", + "template": "ssl/ssl-dns-names.yaml", + "template_id": "ssl-dns-names", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/ssl-dns-names.yaml", + "timestamp": "2022-09-09T21:18:55.401569+02:00", + "type": "ssl", }, - "category": "cname-fingerprint", - "description": "A CNAME DNS record was discovered.", - "identified_at": "2022-09-09T19:27:25.325Z", - "location": "https://www.securecodebox.io", - "name": "CNAME Fingerprint", - "references": [ - { - "type": "URL", - "value": "https://www.theregister.com/2021/02/24/dns_cname_tracking/", - }, - { - "type": "URL", - "value": "https://www.ionos.com/digitalguide/hosting/technical-matters/cname-record/", - }, - { - "type": "CWE", - "value": "CWE-200", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", - }, - ], + "category": "ssl-dns-names", + "description": "The name of the nuclei rule which triggered the finding: ssl-dns-names", + "identified_at": "2022-09-09T19:18:55.401Z", + "location": "https://example.com", + "name": "SSL DNS Names", + "references": null, "severity": "INFORMATIONAL", }, { @@ -952,15 +854,15 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "author": [ "pdteam", ], - "curl_command": null, + "curl_command": "curl -X 'OPTIONS' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36' 'https://example.com'", "extracted_results": [ - "TLS13", + "OPTIONS, GET, HEAD, POST", ], - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, "matcher_name": null, "matcher_status": true, @@ -970,134 +872,142 @@ exports[`parses secureCodeBox.io result correctly 1`] = ` "request": null, "response": null, "tags": [ - "ssl", + "misc", + "generic", ], - "template": "ssl/tls-version.yaml", - "template_id": "tls-version", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/tls-version.yaml", - "timestamp": "2022-09-09T21:27:53.046678+02:00", - "type": "ssl", + "template": "miscellaneous/options-method.yaml", + "template_id": "options-method", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/miscellaneous/options-method.yaml", + "timestamp": "2022-09-09T21:19:38.295229+02:00", + "type": "http", }, - "category": "tls-version", - "description": "The name of the nuclei rule which triggered the finding: tls-version", - "identified_at": "2022-09-09T19:27:53.046Z", - "location": "https://www.securecodebox.io", - "name": "TLS Version", + "category": "options-method", + "description": "The name of the nuclei rule which triggered the finding: options-method", + "identified_at": "2022-09-09T19:19:38.295Z", + "location": "https://example.com", + "name": "Allowed Options Method", "references": null, "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "pdteam", + "righettod", + "forgedhallpass", ], "curl_command": null, "extracted_results": [ - "docs.securecodebox.io", - "www.securecodebox.io", + "TLS10", ], - "hostname": "www.securecodebox.io", + "hostname": "example.com", "ip_addresses": [ - "34.159.58.69", + "93.184.216.34", ], - "matched_at": "https://www.securecodebox.io", + "matched_at": "https://example.com", "matched_line": null, "matcher_name": null, "matcher_status": true, - "metadata": null, + "metadata": { + "shodan-query": "ssl.version:sslv2 ssl.version:sslv3 ssl.version:tlsv1 ssl.version:tlsv1.1", + }, "path": null, - "reference": null, + "reference": [ + "https://ssl-config.mozilla.org/#config=intermediate", + ], "request": null, "response": null, "tags": [ "ssl", ], - "template": "ssl/ssl-dns-names.yaml", - "template_id": "ssl-dns-names", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/ssl-dns-names.yaml", - "timestamp": "2022-09-09T21:28:02.187683+02:00", + "template": "ssl/deprecated-tls.yaml", + "template_id": "deprecated-tls", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/deprecated-tls.yaml", + "timestamp": "2022-09-09T21:20:23.43205+02:00", "type": "ssl", }, - "category": "ssl-dns-names", - "description": "The name of the nuclei rule which triggered the finding: ssl-dns-names", - "identified_at": "2022-09-09T19:28:02.187Z", - "location": "https://www.securecodebox.io", - "name": "SSL DNS Names", - "references": null, + "category": "deprecated-tls", + "description": +"Both TLS 1.1 and SSLv3 are deprecated in favor of stronger encryption. +" +, + "identified_at": "2022-09-09T19:20:23.432Z", + "location": "https://example.com", + "name": "Deprecated TLS Detection (TLS 1.1 or SSLv3)", + "references": [ + { + "type": "URL", + "value": "https://ssl-config.mozilla.org/#config=intermediate", + }, + ], "severity": "INFORMATIONAL", }, -] -`; - -exports[`parses the example.com result correctly 1`] = ` -[ { "attributes": { "author": [ - "socketz", - "geeknik", - "g4l1t0", - "convisoappsec", - "kurohost", - "dawid-czarnecki", + "righettod", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", - "extracted_results": null, + "curl_command": null, + "extracted_results": [ + "TLS11", + ], "hostname": "example.com", "ip_addresses": [ "93.184.216.34", ], "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "content-security-policy", + "matcher_name": null, "matcher_status": true, - "metadata": null, + "metadata": { + "shodan-query": "ssl.version:sslv2 ssl.version:sslv3 ssl.version:tlsv1 ssl.version:tlsv1.1", + }, "path": null, - "reference": null, + "reference": [ + "https://ssl-config.mozilla.org/#config=intermediate", + ], "request": null, "response": null, "tags": [ - "misconfig", - "generic", + "ssl", ], - "template": "misconfiguration/http-missing-security-headers.yaml", - "template_id": "http-missing-security-headers", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.271592+02:00", - "type": "http", + "template": "ssl/deprecated-tls.yaml", + "template_id": "deprecated-tls", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/deprecated-tls.yaml", + "timestamp": "2022-09-09T21:20:23.731779+02:00", + "type": "ssl", }, - "category": "http-missing-security-headers", + "category": "deprecated-tls", "description": -"This template searches for missing HTTP security headers. The impact of these missing headers can vary. +"Both TLS 1.1 and SSLv3 are deprecated in favor of stronger encryption. " , - "identified_at": "2022-09-09T19:18:55.271Z", + "identified_at": "2022-09-09T19:20:23.731Z", "location": "https://example.com", - "name": "HTTP Missing Security Headers", - "references": null, + "name": "Deprecated TLS Detection (TLS 1.1 or SSLv3)", + "references": [ + { + "type": "URL", + "value": "https://ssl-config.mozilla.org/#config=intermediate", + }, + ], "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "socketz", - "geeknik", - "g4l1t0", - "convisoappsec", - "kurohost", - "dawid-czarnecki", - "forgedhallpass", + "pdteam", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", - "extracted_results": null, - "hostname": "example.com", - "ip_addresses": [ - "93.184.216.34", + "curl_command": null, + "extracted_results": [ + "a.iana-servers.net.", + "b.iana-servers.net.", ], + "hostname": "example.com", + "ip_addresses": [], "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "x-permitted-cross-domain-policies", + "matcher_name": null, "matcher_status": true, "metadata": null, "path": null, @@ -1105,46 +1015,223 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "misconfig", - "generic", + "dns", + "ns", ], - "template": "misconfiguration/http-missing-security-headers.yaml", - "template_id": "http-missing-security-headers", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.272231+02:00", - "type": "http", + "template": "dns/nameserver-fingerprint.yaml", + "template_id": "nameserver-fingerprint", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/nameserver-fingerprint.yaml", + "timestamp": "2022-09-09T21:20:29.548052+02:00", + "type": "dns", }, - "category": "http-missing-security-headers", - "description": -"This template searches for missing HTTP security headers. The impact of these missing headers can vary. -" -, - "identified_at": "2022-09-09T19:18:55.272Z", + "category": "nameserver-fingerprint", + "description": "An NS record was detected. An NS record delegates a subdomain to a set of name servers.", + "identified_at": "2022-09-09T19:20:29.548Z", "location": "https://example.com", - "name": "HTTP Missing Security Headers", - "references": null, + "name": "NS Record Detection", + "references": [ + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", + }, + ], "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "socketz", - "geeknik", - "g4l1t0", - "convisoappsec", - "kurohost", - "dawid-czarnecki", - "forgedhallpass", + "pdteam", + ], + "curl_command": null, + "extracted_results": [ + "31406 8 1 189968811E6EBA862DD6C209F75623D8D9ED9142", + "31406 8 2 F78CF3344F72137235098ECBBD08947C2C9001C7F6A085A17F518B5D8F6B916D", + "31589 8 1 3490A6806D47F17A34C29E2CE80E8A999FFBE4BE", + "31589 8 2 CDE0D742D6998AA554A92D890F8184C698CFAC8A26FA59875A990C03E576343C", + "43547 8 1 B6225AB2CC613E0DCA7962BDC2342EA4F1B56083", + "43547 8 2 615A64233543F66F44D68933625B17497C89A70E858ED76A2145997EDF96A918", + ], + "hostname": "example.com", + "ip_addresses": [], + "matched_at": "https://example.com", + "matched_line": null, + "matcher_name": null, + "matcher_status": true, + "metadata": null, + "path": null, + "reference": [ + "https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en", + "https://www.cyberciti.biz/faq/unix-linux-test-and-validate-dnssec-using-dig-command-line/", + ], + "request": null, + "response": null, + "tags": [ + "dns", + "dnssec", + ], + "template": "dns/dnssec-detection.yaml", + "template_id": "dnssec-detection", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/dnssec-detection.yaml", + "timestamp": "2022-09-09T21:20:38.059221+02:00", + "type": "dns", + }, + "category": "dnssec-detection", + "description": "Domain Name System Security Extensions (DNSSEC) are enabled. The Delegation of Signing (DS) record provides information about a signed zone file when DNSSEC enabled.", + "identified_at": "2022-09-09T19:20:38.059Z", + "location": "https://example.com", + "name": "DNSSEC Detection", + "references": [ + { + "type": "URL", + "value": "https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en", + }, + { + "type": "URL", + "value": "https://www.cyberciti.biz/faq/unix-linux-test-and-validate-dnssec-using-dig-command-line/", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "author": [ + "pdteam", + ], + "curl_command": null, + "extracted_results": [ + ""v=spf1 -all"", + ""wgyf8z8cgvm2qmxpnbnldrcltvk4xqfn"", + ], + "hostname": "example.com", + "ip_addresses": [], + "matched_at": "https://example.com", + "matched_line": null, + "matcher_name": null, + "matcher_status": true, + "metadata": null, + "path": null, + "reference": [ + "https://www.netspi.com/blog/technical/network-penetration-testing/analyzing-dns-txt-records-to-fingerprint-service-providers/", + ], + "request": null, + "response": null, + "tags": [ + "dns", + "txt", + ], + "template": "dns/txt-fingerprint.yaml", + "template_id": "txt-fingerprint", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/txt-fingerprint.yaml", + "timestamp": "2022-09-09T21:20:45.095908+02:00", + "type": "dns", + }, + "category": "txt-fingerprint", + "description": "A DNS TXT record was detected. The TXT record lets a domain admin leave notes on a DNS server.", + "identified_at": "2022-09-09T19:20:45.095Z", + "location": "https://example.com", + "name": "DNS TXT Record Detected", + "references": [ + { + "type": "URL", + "value": "https://www.netspi.com/blog/technical/network-penetration-testing/analyzing-dns-txt-records-to-fingerprint-service-providers/", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "author": [ + "pdteam", + ], + "curl_command": null, + "extracted_results": [ + "0 .", + ], + "hostname": "example.com", + "ip_addresses": [], + "matched_at": "https://example.com", + "matched_line": null, + "matcher_name": null, + "matcher_status": true, + "metadata": null, + "path": null, + "reference": [ + "https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/", + "https://mxtoolbox.com/", + ], + "request": null, + "response": null, + "tags": [ + "dns", + "mx", + ], + "template": "dns/mx-fingerprint.yaml", + "template_id": "mx-fingerprint", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/mx-fingerprint.yaml", + "timestamp": "2022-09-09T21:20:54.419479+02:00", + "type": "dns", + }, + "category": "mx-fingerprint", + "description": "An MX record was detected. MX records direct emails to a mail exchange server.", + "identified_at": "2022-09-09T19:20:54.419Z", + "location": "https://example.com", + "name": "MX Record Detection", + "references": [ + { + "type": "URL", + "value": "https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/", + }, + { + "type": "URL", + "value": "https://mxtoolbox.com/", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "author": [ + "pdteam", + ], + "curl_command": null, + "extracted_results": [ + "TLS13", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", - "extracted_results": null, "hostname": "example.com", "ip_addresses": [ "93.184.216.34", ], "matched_at": "https://example.com", "matched_line": null, - "matcher_name": "clear-site-data", + "matcher_name": null, "matcher_status": true, "metadata": null, "path": null, @@ -1152,46 +1239,38 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "misconfig", - "generic", + "ssl", ], - "template": "misconfiguration/http-missing-security-headers.yaml", - "template_id": "http-missing-security-headers", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.272358+02:00", - "type": "http", + "template": "ssl/tls-version.yaml", + "template_id": "tls-version", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/tls-version.yaml", + "timestamp": "2022-09-09T21:21:04.604798+02:00", + "type": "ssl", }, - "category": "http-missing-security-headers", - "description": -"This template searches for missing HTTP security headers. The impact of these missing headers can vary. -" -, - "identified_at": "2022-09-09T19:18:55.272Z", + "category": "tls-version", + "description": "The name of the nuclei rule which triggered the finding: tls-version", + "identified_at": "2022-09-09T19:21:04.604Z", "location": "https://example.com", - "name": "HTTP Missing Security Headers", + "name": "TLS Version", "references": null, "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "socketz", - "geeknik", - "g4l1t0", - "convisoappsec", - "kurohost", - "dawid-czarnecki", - "forgedhallpass", + "v0idc0de", + ], + "curl_command": "curl -X 'GET' -d '' -H 'Host: login.microsoftonline.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36' 'https://login.microsoftonline.com:443/example.com/v2.0/.well-known/openid-configuration'", + "extracted_results": [ + "c7c08208-4f4d-45f1-83cd-5e2f491ab786", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", - "extracted_results": null, "hostname": "example.com", "ip_addresses": [ - "93.184.216.34", + "40.126.32.140", ], - "matched_at": "https://example.com", + "matched_at": "https://login.microsoftonline.com:443/example.com/v2.0/.well-known/openid-configuration", "matched_line": null, - "matcher_name": "access-control-allow-credentials", + "matcher_name": null, "matcher_status": true, "metadata": null, "path": null, @@ -1199,46 +1278,91 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "misconfig", - "generic", + "azure", + "microsoft", + "cloud", ], - "template": "misconfiguration/http-missing-security-headers.yaml", - "template_id": "http-missing-security-headers", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.27242+02:00", + "template": "exposures/configs/azure-domain-tenant.yaml", + "template_id": "azure-domain-tenant", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/exposures/configs/azure-domain-tenant.yaml", + "timestamp": "2022-09-09T21:21:17.696098+02:00", "type": "http", }, - "category": "http-missing-security-headers", - "description": -"This template searches for missing HTTP security headers. The impact of these missing headers can vary. -" -, - "identified_at": "2022-09-09T19:18:55.272Z", + "category": "azure-domain-tenant", + "description": "Checks if the domain is part of an Azure tenant and finds the ID using Azure's OpenID discovery page.", + "identified_at": "2022-09-09T19:21:17.696Z", "location": "https://example.com", - "name": "HTTP Missing Security Headers", + "name": "Microsoft Azure - Domain Tenant ID", "references": null, "severity": "INFORMATIONAL", }, +] +`; + +exports[`parses secureCodeBox.io result correctly 1`] = ` +[ + { + "attributes": { + "author": [ + "yavolo", + "dwisiswant0", + ], + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": null, + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "34.159.58.69", + ], + "matched_at": "https://www.securecodebox.io", + "matched_line": null, + "matcher_name": null, + "matcher_status": true, + "metadata": null, + "path": null, + "reference": [ + "https://portswigger.net/web-security/dom-based/controlling-the-web-message-source", + ], + "request": null, + "response": null, + "tags": [ + "xss", + "misc", + ], + "template": "miscellaneous/addeventlistener-detect.yaml", + "template_id": "addeventlistener-detect", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/miscellaneous/addeventlistener-detect.yaml", + "timestamp": "2022-09-09T21:26:27.762236+02:00", + "type": "http", + }, + "category": "addeventlistener-detect", + "description": "The name of the nuclei rule which triggered the finding: addeventlistener-detect", + "identified_at": "2022-09-09T19:26:27.762Z", + "location": "https://www.securecodebox.io", + "name": "DOM EventListener detection", + "references": [ + { + "type": "URL", + "value": "https://portswigger.net/web-security/dom-based/controlling-the-web-message-source", + }, + ], + "severity": "INFORMATIONAL", + }, { "attributes": { "author": [ - "socketz", - "geeknik", - "g4l1t0", - "convisoappsec", - "kurohost", - "dawid-czarnecki", - "forgedhallpass", + "panch0r3d", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", - "extracted_results": null, - "hostname": "example.com", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": [ + "securecodebox@iteratec.com", + ], + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "access-control-allow-headers", + "matcher_name": null, "matcher_status": true, "metadata": null, "path": null, @@ -1246,71 +1370,68 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "misconfig", - "generic", + "misc", + "email", ], - "template": "misconfiguration/http-missing-security-headers.yaml", - "template_id": "http-missing-security-headers", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.272488+02:00", + "template": "miscellaneous/email-extractor.yaml", + "template_id": "email-extractor", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/miscellaneous/email-extractor.yaml", + "timestamp": "2022-09-09T21:26:27.777226+02:00", "type": "http", }, - "category": "http-missing-security-headers", - "description": -"This template searches for missing HTTP security headers. The impact of these missing headers can vary. -" -, - "identified_at": "2022-09-09T19:18:55.272Z", - "location": "https://example.com", - "name": "HTTP Missing Security Headers", + "category": "email-extractor", + "description": "The name of the nuclei rule which triggered the finding: email-extractor", + "identified_at": "2022-09-09T19:26:27.777Z", + "location": "https://www.securecodebox.io", + "name": "Email Extractor", "references": null, "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "socketz", - "geeknik", - "g4l1t0", - "convisoappsec", - "kurohost", - "dawid-czarnecki", - "forgedhallpass", + "dadevel", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", - "extracted_results": null, - "hostname": "example.com", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/44.0.2403.155 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": [ + "Docusaurus v2.0.1", + ], + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "permission-policy", + "matcher_name": null, "matcher_status": true, "metadata": null, "path": null, - "reference": null, + "reference": [ + "https://www.w3schools.com/tags/att_meta_name.asp", + ], "request": null, "response": null, "tags": [ - "misconfig", - "generic", + "tech", + "cms", ], - "template": "misconfiguration/http-missing-security-headers.yaml", - "template_id": "http-missing-security-headers", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.272559+02:00", + "template": "technologies/metatag-cms.yaml", + "template_id": "metatag-cms", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/technologies/metatag-cms.yaml", + "timestamp": "2022-09-09T21:26:28.511351+02:00", "type": "http", }, - "category": "http-missing-security-headers", - "description": -"This template searches for missing HTTP security headers. The impact of these missing headers can vary. -" -, - "identified_at": "2022-09-09T19:18:55.272Z", - "location": "https://example.com", - "name": "HTTP Missing Security Headers", - "references": null, + "category": "metatag-cms", + "description": "Generic CMS Detection using html meta generator tag", + "identified_at": "2022-09-09T19:26:28.511Z", + "location": "https://www.securecodebox.io", + "name": "Metatag CMS Detection", + "references": [ + { + "type": "URL", + "value": "https://www.w3schools.com/tags/att_meta_name.asp", + }, + ], "severity": "INFORMATIONAL", }, { @@ -1324,15 +1445,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "cross-origin-embedder-policy", + "matcher_name": "referrer-policy", "matcher_status": true, "metadata": null, "path": null, @@ -1346,7 +1467,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.292757+02:00", + "timestamp": "2022-09-09T21:27:13.644349+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1354,8 +1475,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.292Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.644Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1371,15 +1492,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "cross-origin-resource-policy", + "matcher_name": "access-control-allow-origin", "matcher_status": true, "metadata": null, "path": null, @@ -1393,7 +1514,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293626+02:00", + "timestamp": "2022-09-09T21:27:13.644671+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1401,8 +1522,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.644Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1418,15 +1539,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "access-control-allow-origin", + "matcher_name": "access-control-allow-credentials", "matcher_status": true, "metadata": null, "path": null, @@ -1440,7 +1561,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293711+02:00", + "timestamp": "2022-09-09T21:27:13.644884+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1448,8 +1569,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.644Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1465,13 +1586,13 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, "matcher_name": "access-control-expose-headers", "matcher_status": true, @@ -1487,7 +1608,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293768+02:00", + "timestamp": "2022-09-09T21:27:13.644952+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1495,8 +1616,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.644Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1512,15 +1633,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "access-control-max-age", + "matcher_name": "access-control-allow-methods", "matcher_status": true, "metadata": null, "path": null, @@ -1534,7 +1655,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293798+02:00", + "timestamp": "2022-09-09T21:27:13.645129+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1542,8 +1663,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.645Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1559,15 +1680,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "strict-transport-security", + "matcher_name": "x-content-type-options", "matcher_status": true, "metadata": null, "path": null, @@ -1581,7 +1702,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293859+02:00", + "timestamp": "2022-09-09T21:27:13.645183+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1589,8 +1710,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.645Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1606,15 +1727,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "x-frame-options", + "matcher_name": "x-permitted-cross-domain-policies", "matcher_status": true, "metadata": null, "path": null, @@ -1628,7 +1749,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293899+02:00", + "timestamp": "2022-09-09T21:27:13.655101+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1636,8 +1757,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.655Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1653,15 +1774,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "x-content-type-options", + "matcher_name": "access-control-max-age", "matcher_status": true, "metadata": null, "path": null, @@ -1675,7 +1796,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293924+02:00", + "timestamp": "2022-09-09T21:27:13.659602+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1683,8 +1804,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.659Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1700,15 +1821,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "referrer-policy", + "matcher_name": "content-security-policy", "matcher_status": true, "metadata": null, "path": null, @@ -1722,7 +1843,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293951+02:00", + "timestamp": "2022-09-09T21:27:13.65974+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1730,8 +1851,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.659Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1747,13 +1868,13 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, "matcher_name": "cross-origin-opener-policy", "matcher_status": true, @@ -1769,7 +1890,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.293979+02:00", + "timestamp": "2022-09-09T21:27:13.659816+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1777,8 +1898,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.293Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.659Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1794,15 +1915,15 @@ exports[`parses the example.com result correctly 1`] = ` "dawid-czarnecki", "forgedhallpass", ], - "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36' 'https://example.com'", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", "extracted_results": null, - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": "access-control-allow-methods", + "matcher_name": "x-frame-options", "matcher_status": true, "metadata": null, "path": null, @@ -1816,7 +1937,7 @@ exports[`parses the example.com result correctly 1`] = ` "template": "misconfiguration/http-missing-security-headers.yaml", "template_id": "http-missing-security-headers", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", - "timestamp": "2022-09-09T21:18:55.294616+02:00", + "timestamp": "2022-09-09T21:27:13.659934+02:00", "type": "http", }, "category": "http-missing-security-headers", @@ -1824,8 +1945,8 @@ exports[`parses the example.com result correctly 1`] = ` "This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:18:55.294Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:13.659Z", + "location": "https://www.securecodebox.io", "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", @@ -1833,26 +1954,23 @@ exports[`parses the example.com result correctly 1`] = ` { "attributes": { "author": [ - "pdteam", - ], - "curl_command": null, - "extracted_results": [ - "example.net", - "example.edu", - "example.com", - "example.org", - "www.example.com", - "www.example.edu", - "www.example.net", - "www.example.org", + "socketz", + "geeknik", + "g4l1t0", + "convisoappsec", + "kurohost", + "dawid-czarnecki", + "forgedhallpass", ], - "hostname": "example.com", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": null, + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": null, + "matcher_name": "cross-origin-resource-policy", "matcher_status": true, "metadata": null, "path": null, @@ -1860,38 +1978,46 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "ssl", + "misconfig", + "generic", ], - "template": "ssl/ssl-dns-names.yaml", - "template_id": "ssl-dns-names", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/ssl-dns-names.yaml", - "timestamp": "2022-09-09T21:18:55.401569+02:00", - "type": "ssl", + "template": "misconfiguration/http-missing-security-headers.yaml", + "template_id": "http-missing-security-headers", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", + "timestamp": "2022-09-09T21:27:13.660006+02:00", + "type": "http", }, - "category": "ssl-dns-names", - "description": "The name of the nuclei rule which triggered the finding: ssl-dns-names", - "identified_at": "2022-09-09T19:18:55.401Z", - "location": "https://example.com", - "name": "SSL DNS Names", + "category": "http-missing-security-headers", + "description": +"This template searches for missing HTTP security headers. The impact of these missing headers can vary. +" +, + "identified_at": "2022-09-09T19:27:13.660Z", + "location": "https://www.securecodebox.io", + "name": "HTTP Missing Security Headers", "references": null, "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "pdteam", - ], - "curl_command": "curl -X 'OPTIONS' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36' 'https://example.com'", - "extracted_results": [ - "OPTIONS, GET, HEAD, POST", + "socketz", + "geeknik", + "g4l1t0", + "convisoappsec", + "kurohost", + "dawid-czarnecki", + "forgedhallpass", ], - "hostname": "example.com", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": null, + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": null, + "matcher_name": "cross-origin-embedder-policy", "matcher_status": true, "metadata": null, "path": null, @@ -1899,142 +2025,46 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "misc", + "misconfig", "generic", ], - "template": "miscellaneous/options-method.yaml", - "template_id": "options-method", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/miscellaneous/options-method.yaml", - "timestamp": "2022-09-09T21:19:38.295229+02:00", + "template": "misconfiguration/http-missing-security-headers.yaml", + "template_id": "http-missing-security-headers", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", + "timestamp": "2022-09-09T21:27:13.660065+02:00", "type": "http", }, - "category": "options-method", - "description": "The name of the nuclei rule which triggered the finding: options-method", - "identified_at": "2022-09-09T19:19:38.295Z", - "location": "https://example.com", - "name": "Allowed Options Method", - "references": null, - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "author": [ - "righettod", - "forgedhallpass", - ], - "curl_command": null, - "extracted_results": [ - "TLS10", - ], - "hostname": "example.com", - "ip_addresses": [ - "93.184.216.34", - ], - "matched_at": "https://example.com", - "matched_line": null, - "matcher_name": null, - "matcher_status": true, - "metadata": { - "shodan-query": "ssl.version:sslv2 ssl.version:sslv3 ssl.version:tlsv1 ssl.version:tlsv1.1", - }, - "path": null, - "reference": [ - "https://ssl-config.mozilla.org/#config=intermediate", - ], - "request": null, - "response": null, - "tags": [ - "ssl", - ], - "template": "ssl/deprecated-tls.yaml", - "template_id": "deprecated-tls", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/deprecated-tls.yaml", - "timestamp": "2022-09-09T21:20:23.43205+02:00", - "type": "ssl", - }, - "category": "deprecated-tls", + "category": "http-missing-security-headers", "description": -"Both TLS 1.1 and SSLv3 are deprecated in favor of stronger encryption. +"This template searches for missing HTTP security headers. The impact of these missing headers can vary. " , - "identified_at": "2022-09-09T19:20:23.432Z", - "location": "https://example.com", - "name": "Deprecated TLS Detection (TLS 1.1 or SSLv3)", - "references": [ - { - "type": "URL", - "value": "https://ssl-config.mozilla.org/#config=intermediate", - }, - ], + "identified_at": "2022-09-09T19:27:13.660Z", + "location": "https://www.securecodebox.io", + "name": "HTTP Missing Security Headers", + "references": null, "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "righettod", + "socketz", + "geeknik", + "g4l1t0", + "convisoappsec", + "kurohost", + "dawid-czarnecki", "forgedhallpass", ], - "curl_command": null, - "extracted_results": [ - "TLS11", - ], - "hostname": "example.com", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": null, + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", - ], - "matched_at": "https://example.com", - "matched_line": null, - "matcher_name": null, - "matcher_status": true, - "metadata": { - "shodan-query": "ssl.version:sslv2 ssl.version:sslv3 ssl.version:tlsv1 ssl.version:tlsv1.1", - }, - "path": null, - "reference": [ - "https://ssl-config.mozilla.org/#config=intermediate", - ], - "request": null, - "response": null, - "tags": [ - "ssl", - ], - "template": "ssl/deprecated-tls.yaml", - "template_id": "deprecated-tls", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/deprecated-tls.yaml", - "timestamp": "2022-09-09T21:20:23.731779+02:00", - "type": "ssl", - }, - "category": "deprecated-tls", - "description": -"Both TLS 1.1 and SSLv3 are deprecated in favor of stronger encryption. -" -, - "identified_at": "2022-09-09T19:20:23.731Z", - "location": "https://example.com", - "name": "Deprecated TLS Detection (TLS 1.1 or SSLv3)", - "references": [ - { - "type": "URL", - "value": "https://ssl-config.mozilla.org/#config=intermediate", - }, - ], - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "author": [ - "pdteam", - ], - "curl_command": null, - "extracted_results": [ - "a.iana-servers.net.", - "b.iana-servers.net.", + "34.159.58.69", ], - "hostname": "example.com", - "ip_addresses": [], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": null, + "matcher_name": "access-control-allow-headers", "matcher_status": true, "metadata": null, "path": null, @@ -2042,147 +2072,118 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "dns", - "ns", + "misconfig", + "generic", ], - "template": "dns/nameserver-fingerprint.yaml", - "template_id": "nameserver-fingerprint", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/nameserver-fingerprint.yaml", - "timestamp": "2022-09-09T21:20:29.548052+02:00", - "type": "dns", + "template": "misconfiguration/http-missing-security-headers.yaml", + "template_id": "http-missing-security-headers", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", + "timestamp": "2022-09-09T21:27:13.6601+02:00", + "type": "http", }, - "category": "nameserver-fingerprint", - "description": "An NS record was detected. An NS record delegates a subdomain to a set of name servers.", - "identified_at": "2022-09-09T19:20:29.548Z", - "location": "https://example.com", - "name": "NS Record Detection", - "references": [ - { - "type": "CWE", - "value": "CWE-200", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", - }, - ], + "category": "http-missing-security-headers", + "description": +"This template searches for missing HTTP security headers. The impact of these missing headers can vary. +" +, + "identified_at": "2022-09-09T19:27:13.660Z", + "location": "https://www.securecodebox.io", + "name": "HTTP Missing Security Headers", + "references": null, "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "pdteam", + "socketz", + "geeknik", + "g4l1t0", + "convisoappsec", + "kurohost", + "dawid-czarnecki", + "forgedhallpass", ], - "curl_command": null, - "extracted_results": [ - "31406 8 1 189968811E6EBA862DD6C209F75623D8D9ED9142", - "31406 8 2 F78CF3344F72137235098ECBBD08947C2C9001C7F6A085A17F518B5D8F6B916D", - "31589 8 1 3490A6806D47F17A34C29E2CE80E8A999FFBE4BE", - "31589 8 2 CDE0D742D6998AA554A92D890F8184C698CFAC8A26FA59875A990C03E576343C", - "43547 8 1 B6225AB2CC613E0DCA7962BDC2342EA4F1B56083", - "43547 8 2 615A64233543F66F44D68933625B17497C89A70E858ED76A2145997EDF96A918", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": null, + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "34.159.58.69", ], - "hostname": "example.com", - "ip_addresses": [], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": null, + "matcher_name": "permission-policy", "matcher_status": true, "metadata": null, "path": null, - "reference": [ - "https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en", - "https://www.cyberciti.biz/faq/unix-linux-test-and-validate-dnssec-using-dig-command-line/", - ], + "reference": null, "request": null, "response": null, "tags": [ - "dns", - "dnssec", + "misconfig", + "generic", ], - "template": "dns/dnssec-detection.yaml", - "template_id": "dnssec-detection", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/dnssec-detection.yaml", - "timestamp": "2022-09-09T21:20:38.059221+02:00", - "type": "dns", + "template": "misconfiguration/http-missing-security-headers.yaml", + "template_id": "http-missing-security-headers", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", + "timestamp": "2022-09-09T21:27:13.660161+02:00", + "type": "http", }, - "category": "dnssec-detection", - "description": "Domain Name System Security Extensions (DNSSEC) are enabled. The Delegation of Signing (DS) record provides information about a signed zone file when DNSSEC enabled.", - "identified_at": "2022-09-09T19:20:38.059Z", - "location": "https://example.com", - "name": "DNSSEC Detection", - "references": [ - { - "type": "URL", - "value": "https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en", - }, - { - "type": "URL", - "value": "https://www.cyberciti.biz/faq/unix-linux-test-and-validate-dnssec-using-dig-command-line/", - }, - { - "type": "CWE", - "value": "CWE-200", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", - }, - ], + "category": "http-missing-security-headers", + "description": +"This template searches for missing HTTP security headers. The impact of these missing headers can vary. +" +, + "identified_at": "2022-09-09T19:27:13.660Z", + "location": "https://www.securecodebox.io", + "name": "HTTP Missing Security Headers", + "references": null, "severity": "INFORMATIONAL", }, { "attributes": { "author": [ - "pdteam", + "socketz", + "geeknik", + "g4l1t0", + "convisoappsec", + "kurohost", + "dawid-czarnecki", + "forgedhallpass", ], - "curl_command": null, - "extracted_results": [ - ""v=spf1 -all"", - ""wgyf8z8cgvm2qmxpnbnldrcltvk4xqfn"", + "curl_command": "curl -X 'GET' -d '' -H 'Accept: */*' -H 'Accept-Language: en' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36' 'https://www.securecodebox.io'", + "extracted_results": null, + "hostname": "www.securecodebox.io", + "ip_addresses": [ + "34.159.58.69", ], - "hostname": "example.com", - "ip_addresses": [], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, - "matcher_name": null, + "matcher_name": "clear-site-data", "matcher_status": true, "metadata": null, "path": null, - "reference": [ - "https://www.netspi.com/blog/technical/network-penetration-testing/analyzing-dns-txt-records-to-fingerprint-service-providers/", - ], + "reference": null, "request": null, "response": null, "tags": [ - "dns", - "txt", + "misconfig", + "generic", ], - "template": "dns/txt-fingerprint.yaml", - "template_id": "txt-fingerprint", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/txt-fingerprint.yaml", - "timestamp": "2022-09-09T21:20:45.095908+02:00", - "type": "dns", + "template": "misconfiguration/http-missing-security-headers.yaml", + "template_id": "http-missing-security-headers", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/misconfiguration/http-missing-security-headers.yaml", + "timestamp": "2022-09-09T21:27:13.660239+02:00", + "type": "http", }, - "category": "txt-fingerprint", - "description": "A DNS TXT record was detected. The TXT record lets a domain admin leave notes on a DNS server.", - "identified_at": "2022-09-09T19:20:45.095Z", - "location": "https://example.com", - "name": "DNS TXT Record Detected", - "references": [ - { - "type": "URL", - "value": "https://www.netspi.com/blog/technical/network-penetration-testing/analyzing-dns-txt-records-to-fingerprint-service-providers/", - }, - { - "type": "CWE", - "value": "CWE-200", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/cwe-200.html", - }, - ], + "category": "http-missing-security-headers", + "description": +"This template searches for missing HTTP security headers. The impact of these missing headers can vary. +" +, + "identified_at": "2022-09-09T19:27:13.660Z", + "location": "https://www.securecodebox.io", + "name": "HTTP Missing Security Headers", + "references": null, "severity": "INFORMATIONAL", }, { @@ -2192,45 +2193,45 @@ exports[`parses the example.com result correctly 1`] = ` ], "curl_command": null, "extracted_results": [ - "0 .", + "docs-securecodebox.netlify.app.", ], - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, "matcher_name": null, "matcher_status": true, "metadata": null, "path": null, "reference": [ - "https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/", - "https://mxtoolbox.com/", + "https://www.theregister.com/2021/02/24/dns_cname_tracking/", + "https://www.ionos.com/digitalguide/hosting/technical-matters/cname-record/", ], "request": null, "response": null, "tags": [ "dns", - "mx", + "cname", ], - "template": "dns/mx-fingerprint.yaml", - "template_id": "mx-fingerprint", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/mx-fingerprint.yaml", - "timestamp": "2022-09-09T21:20:54.419479+02:00", + "template": "dns/cname-fingerprint.yaml", + "template_id": "cname-fingerprint", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/dns/cname-fingerprint.yaml", + "timestamp": "2022-09-09T21:27:25.325591+02:00", "type": "dns", }, - "category": "mx-fingerprint", - "description": "An MX record was detected. MX records direct emails to a mail exchange server.", - "identified_at": "2022-09-09T19:20:54.419Z", - "location": "https://example.com", - "name": "MX Record Detection", + "category": "cname-fingerprint", + "description": "A CNAME DNS record was discovered.", + "identified_at": "2022-09-09T19:27:25.325Z", + "location": "https://www.securecodebox.io", + "name": "CNAME Fingerprint", "references": [ { "type": "URL", - "value": "https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/", + "value": "https://www.theregister.com/2021/02/24/dns_cname_tracking/", }, { "type": "URL", - "value": "https://mxtoolbox.com/", + "value": "https://www.ionos.com/digitalguide/hosting/technical-matters/cname-record/", }, { "type": "CWE", @@ -2252,11 +2253,11 @@ exports[`parses the example.com result correctly 1`] = ` "extracted_results": [ "TLS13", ], - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "93.184.216.34", + "34.159.58.69", ], - "matched_at": "https://example.com", + "matched_at": "https://www.securecodebox.io", "matched_line": null, "matcher_name": null, "matcher_status": true, @@ -2271,13 +2272,13 @@ exports[`parses the example.com result correctly 1`] = ` "template": "ssl/tls-version.yaml", "template_id": "tls-version", "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/tls-version.yaml", - "timestamp": "2022-09-09T21:21:04.604798+02:00", + "timestamp": "2022-09-09T21:27:53.046678+02:00", "type": "ssl", }, "category": "tls-version", "description": "The name of the nuclei rule which triggered the finding: tls-version", - "identified_at": "2022-09-09T19:21:04.604Z", - "location": "https://example.com", + "identified_at": "2022-09-09T19:27:53.046Z", + "location": "https://www.securecodebox.io", "name": "TLS Version", "references": null, "severity": "INFORMATIONAL", @@ -2285,17 +2286,18 @@ exports[`parses the example.com result correctly 1`] = ` { "attributes": { "author": [ - "v0idc0de", + "pdteam", ], - "curl_command": "curl -X 'GET' -d '' -H 'Host: login.microsoftonline.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36' 'https://login.microsoftonline.com:443/example.com/v2.0/.well-known/openid-configuration'", + "curl_command": null, "extracted_results": [ - "c7c08208-4f4d-45f1-83cd-5e2f491ab786", + "docs.securecodebox.io", + "www.securecodebox.io", ], - "hostname": "example.com", + "hostname": "www.securecodebox.io", "ip_addresses": [ - "40.126.32.140", + "34.159.58.69", ], - "matched_at": "https://login.microsoftonline.com:443/example.com/v2.0/.well-known/openid-configuration", + "matched_at": "https://www.securecodebox.io", "matched_line": null, "matcher_name": null, "matcher_status": true, @@ -2305,21 +2307,19 @@ exports[`parses the example.com result correctly 1`] = ` "request": null, "response": null, "tags": [ - "azure", - "microsoft", - "cloud", + "ssl", ], - "template": "exposures/configs/azure-domain-tenant.yaml", - "template_id": "azure-domain-tenant", - "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/exposures/configs/azure-domain-tenant.yaml", - "timestamp": "2022-09-09T21:21:17.696098+02:00", - "type": "http", + "template": "ssl/ssl-dns-names.yaml", + "template_id": "ssl-dns-names", + "template_url": "https://github.com/projectdiscovery/nuclei-templates/blob/master/ssl/ssl-dns-names.yaml", + "timestamp": "2022-09-09T21:28:02.187683+02:00", + "type": "ssl", }, - "category": "azure-domain-tenant", - "description": "Checks if the domain is part of an Azure tenant and finds the ID using Azure's OpenID discovery page.", - "identified_at": "2022-09-09T19:21:17.696Z", - "location": "https://example.com", - "name": "Microsoft Azure - Domain Tenant ID", + "category": "ssl-dns-names", + "description": "The name of the nuclei rule which triggered the finding: ssl-dns-names", + "identified_at": "2022-09-09T19:28:02.187Z", + "location": "https://www.securecodebox.io", + "name": "SSL DNS Names", "references": null, "severity": "INFORMATIONAL", }, diff --git a/scanners/nuclei/parser/__testFiles__/hostname-without-port.jsonl b/scanners/nuclei/parser/__testFiles__/hostname-without-port.jsonl new file mode 100644 index 0000000000..6bad4d2cfd --- /dev/null +++ b/scanners/nuclei/parser/__testFiles__/hostname-without-port.jsonl @@ -0,0 +1 @@ +{"template":"dns/caa-fingerprint.yaml","template-url":"https://cloud.projectdiscovery.io/public/caa-fingerprint","template-id":"caa-fingerprint","template-path":"/root/nuclei-templates/dns/caa-fingerprint.yaml","info":{"name":"CAA Record","author":["pdteam"],"tags":["dns","caa"],"description":"A CAA record was discovered. A CAA record is used to specify which certificate authorities (CAs) are allowed to issue certificates for a domain.","reference":["https://support.dnsimple.com/articles/caa-record/#whats-a-caa-record"],"severity":"info","metadata":{"max-request":1},"classification":{"cve-id":null,"cwe-id":["cwe-200"]}},"type":"dns","host":"example.com","matched-at":"example.com","request":";; opcode: QUERY, status: NOERROR, id: 64465\n;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version 0; flags:; udp: 4096\n\n;; QUESTION SECTION:\n;example.com.\tIN\t CAA\n","response":";; opcode: QUERY, status: NOERROR, id: 64465\n;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version 0; flags:; udp: 1232\n\n;; QUESTION SECTION:\n;example.com.\tIN\t CAA\n\n;; AUTHORITY SECTION:\ndlt.iteratec.dev.\t900\tIN\tSOA\tns-1751.awsdns-26.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400\n","timestamp":"2025-07-22T13:20:51.32197911Z","matcher-status":true} diff --git a/scanners/nuclei/parser/__testFiles__/hostname-without-port.jsonl.license b/scanners/nuclei/parser/__testFiles__/hostname-without-port.jsonl.license new file mode 100644 index 0000000000..c95bc37185 --- /dev/null +++ b/scanners/nuclei/parser/__testFiles__/hostname-without-port.jsonl.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: the secureCodeBox authors + +SPDX-License-Identifier: Apache-2.0 diff --git a/scanners/nuclei/parser/parser.js b/scanners/nuclei/parser/parser.js index 70afd5fc44..5c370809a3 100644 --- a/scanners/nuclei/parser/parser.js +++ b/scanners/nuclei/parser/parser.js @@ -97,12 +97,23 @@ function parseHostname(host) { if (!host) { return null; } + // If the host doesn't have a proper protocol, add one to make URL parsing work + const hasValidProtocol = /^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(host); + + if (!hasValidProtocol) { + return host; + } try { const url = new URL(host); return url.hostname; } catch (err) { + // If URL parsing fails, check if the host is already a hostname (no protocol, no path) + if (!host.includes("://") && !host.includes("/")) { + return host; + } console.warn(`Failed to parse hostname from host: "${host}"`); + return null; } } diff --git a/scanners/nuclei/parser/parser.test.js b/scanners/nuclei/parser/parser.test.js index 05d3fd0b5e..7ed9d91189 100644 --- a/scanners/nuclei/parser/parser.test.js +++ b/scanners/nuclei/parser/parser.test.js @@ -72,3 +72,24 @@ test("parses results with requests & responses correctly", async () => { await expect(validateParser(findings)).resolves.toBeUndefined(); expect(findings).toMatchSnapshot(); }); + +// some templates, e.g. dns ones, do not contain a port in the hostname +test("parses findings with hostnames which do not contain a port correctly", async () => { + const fileContent = await readFile( + import.meta.dirname + "/__testFiles__/hostname-without-port.jsonl", + { + encoding: "utf8", + }, + ); + + const findings = await parse(JSON.parse(fileContent)); + await expect(validateParser(findings)).resolves.toBeUndefined(); + expect(findings[0]).toEqual( + expect.objectContaining({ + location: "example.com", + attributes: expect.objectContaining({ + hostname: "example.com", + }), + }), + ); +}); diff --git a/scanners/subfinder/parser/__snapshots__/parser.test.js.snap b/scanners/subfinder/parser/__snapshots__/parser.test.js.snap index bb91c5fa69..901da3c7c9 100644 --- a/scanners/subfinder/parser/__snapshots__/parser.test.js.snap +++ b/scanners/subfinder/parser/__snapshots__/parser.test.js.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`should properly parse subfinder json file without ip output 1`] = ` [ diff --git a/scanners/trivy/parser/__snapshots__/parser.test.js.snap b/scanners/trivy/parser/__snapshots__/parser.test.js.snap index b9366b68f2..f4ad8ed2b5 100644 --- a/scanners/trivy/parser/__snapshots__/parser.test.js.snap +++ b/scanners/trivy/parser/__snapshots__/parser.test.js.snap @@ -1,4 +1,4 @@ -// Bun Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots exports[`parses bkimminich/juice-shop:v10.2.0 result file into findings 1`] = ` [ diff --git a/scanners/zap-automation-framework/parser/__snapshots__/parser.test.js.snap b/scanners/zap-automation-framework/parser/__snapshots__/parser.test.js.snap index 767451f430..9c3a736b25 100644 --- a/scanners/zap-automation-framework/parser/__snapshots__/parser.test.js.snap +++ b/scanners/zap-automation-framework/parser/__snapshots__/parser.test.js.snap @@ -1,1245 +1,878 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Bun Snapshot v1, https://bun.sh/docs/test/snapshots -exports[`Parsing a bodgeit result. 1`] = ` +exports[`Parsing the juice-shop results. 1`] = ` [ { "attributes": { - "hostname": "cwiki.apache.org", - "port": "443", - "zap_confidence": "3", - "zap_count": "2", - "zap_cweid": "-1", + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "2", + "zap_count": "99", + "zap_cweid": "264", "zap_finding_urls": [ { - "attack": "", - "evidence": "text/html", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "https://cwiki.apache.org/confluence/display/tomcat/FrontPage", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7mu&sid=0b5CIcRfebjeUP6IAAAN", }, { - "attack": "", - "evidence": "text/html", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "https://cwiki.apache.org/tomcat/FrontPage", + "uri": "http://juice-shop:3000/polyfills-es5.js", }, - ], - "zap_otherinfo": null, - "zap_pluginid": "100001", - "zap_reference": null, - "zap_riskcode": "1", - "zap_solution": null, - "zap_wascid": "-1", - }, - "category": "Unexpected Content-Type was returned", - "description": "A Content-Type of text/html was returned by the server.This is not one of the types expected to be returned by an API.Raised by the 'Alert on Unexpected Content Types' script", - "hint": null, - "location": "https://cwiki.apache.org", - "mitigation": null, - "name": "Unexpected Content-Type was returned", - "osi_layer": "APPLICATION", - "references": null, - "severity": "LOW", - }, - { - "attributes": { - "hostname": "wiki.apache.org", - "port": "80", - "zap_confidence": "3", - "zap_count": "1", - "zap_cweid": "-1", - "zap_finding_urls": [ { - "attack": "", - "evidence": "text/html", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "http://wiki.apache.org/tomcat/FrontPage", + "uri": "http://juice-shop:3000/ftp/quarantine/juicy_malware_windows_64.exe.url", }, - ], - "zap_otherinfo": null, - "zap_pluginid": "100001", - "zap_reference": null, - "zap_riskcode": "1", - "zap_solution": null, - "zap_wascid": "-1", - }, - "category": "Unexpected Content-Type was returned", - "description": "A Content-Type of text/html was returned by the server.This is not one of the types expected to be returned by an API.Raised by the 'Alert on Unexpected Content Types' script", - "hint": null, - "location": "http://wiki.apache.org", - "mitigation": null, - "name": "Unexpected Content-Type was returned", - "osi_layer": "APPLICATION", - "references": null, - "severity": "LOW", - }, - { - "attributes": { - "hostname": "content-signature-2.cdn.mozilla.net", - "port": "443", - "zap_confidence": "3", - "zap_count": "1", - "zap_cweid": "-1", - "zap_finding_urls": [ { - "attack": "", - "evidence": "binary/octet-stream", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "https://content-signature-2.cdn.mozilla.net/chains/remote-settings.content-signature.mozilla.org-2022-03-01-08-35-12.chain", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJzM-", }, - ], - "zap_otherinfo": null, - "zap_pluginid": "100001", - "zap_reference": null, - "zap_riskcode": "1", - "zap_solution": null, - "zap_wascid": "-1", - }, - "category": "Unexpected Content-Type was returned", - "description": "A Content-Type of binary/octet-stream was returned by the server.This is not one of the types expected to be returned by an API.Raised by the 'Alert on Unexpected Content Types' script", - "hint": null, - "location": "https://content-signature-2.cdn.mozilla.net", - "mitigation": null, - "name": "Unexpected Content-Type was returned", - "osi_layer": "APPLICATION", - "references": null, - "severity": "LOW", - }, - { - "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "3", - "zap_count": "4", - "zap_cweid": "693", - "zap_finding_urls": [ { - "attack": "", - "evidence": "", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", + "uri": "http://juice-shop:3000/ftp", }, { - "attack": "", - "evidence": "", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml", + "uri": "http://juice-shop:3000/rest/admin/application-configuration", }, { - "attack": "", - "evidence": "", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt", + "uri": "http://juice-shop:3000/rest/products/search?q=", }, { - "attack": "", - "evidence": "", + "evidence": "Access-Control-Allow-Origin: *", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml", + "uri": "http://juice-shop:3000/ftp/eastere.gg", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/assets/public/images/carousel/4.jpg", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/ftp/suspicious_errors.yml", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/ftp/coupons_2013.md.bak", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJzWy&sid=NHcMgUohTH8k9p2zAAAL", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/main-es5.js", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/assets/public/images/products/permafrost.jpg", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/rest/continue-code", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/main-es2018.js", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/ftp/quarantine/juicy_malware_linux_amd_64.url", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwR_", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/sitemap.xml", + }, + { + "evidence": "Access-Control-Allow-Origin: *", + "method": "GET", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJkNZ", }, ], - "zap_otherinfo": null, - "zap_pluginid": "10038", - "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policyhttps://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.htmlhttp://www.w3.org/TR/CSP/http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.htmlhttp://www.html5rocks.com/en/tutorials/security/content-security-policy/http://caniuse.com/#feat=contentsecuritypolicyhttp://content-security-policy.com/", + "zap_otherinfo": "The CORS misconfiguration on the web server permits cross-domain read requests from arbitrary third party domains, using unauthenticated APIs on this domain. Web browser implementations do not permit arbitrary third parties to read the response from authenticated APIs, however. This reduces the risk somewhat. This misconfiguration could be used by an attacker to access data that is available in an unauthenticated manner, but which uses some other form of security, such as IP address white-listing.", + "zap_pluginid": "10098", + "zap_reference": "http://www.hpenterprisesecurity.com/vulncat/en/vulncat/vb/html5_overly_permissive_cors_policy.html", "zap_riskcode": "2", - "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", - "zap_wascid": "15", + "zap_solution": "Ensure that sensitive data is not available in an unauthenticated manner (using IP address white-listing, for instance).Configure the "Access-Control-Allow-Origin" HTTP header to a more restrictive set of domains, or remove all CORS headers entirely, to allow the web browser to enforce the Same Origin Policy (SOP) in a more restrictive manner.", + "zap_wascid": "14", }, - "category": "Content Security Policy (CSP) Header Not Set", - "description": "Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.", + "category": "Cross-Domain Misconfiguration", + "description": "Web browser data loading may be possible, due to a Cross Origin Resource Sharing (CORS) misconfiguration on the web server", "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", - "name": "Content Security Policy (CSP) Header Not Set", + "location": "http://juice-shop:3000", + "mitigation": "Ensure that sensitive data is not available in an unauthenticated manner (using IP address white-listing, for instance).Configure the "Access-Control-Allow-Origin" HTTP header to a more restrictive set of domains, or remove all CORS headers entirely, to allow the web browser to enforce the Same Origin Policy (SOP) in a more restrictive manner.", + "name": "Cross-Domain Misconfiguration", "osi_layer": "APPLICATION", "references": [ { "type": "URL", - "value": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy", - }, - { - "type": "URL", - "value": "https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html", - }, - { - "type": "URL", - "value": "http://www.w3.org/TR/CSP/", - }, - { - "type": "URL", - "value": "http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html", - }, - { - "type": "URL", - "value": "http://www.html5rocks.com/en/tutorials/security/content-security-policy/", - }, - { - "type": "URL", - "value": "http://caniuse.com/#feat=contentsecuritypolicy", - }, - { - "type": "URL", - "value": "http://content-security-policy.com/", + "value": "http://www.hpenterprisesecurity.com/vulncat/en/vulncat/vb/html5_overly_permissive_cors_policy.html", }, { "type": "CWE", - "value": "CWE-693", + "value": "CWE-264", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/693.html", + "value": "https://cwe.mitre.org/data/definitions/264.html", }, ], "severity": "MEDIUM", }, { "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "2", - "zap_count": "4", - "zap_cweid": "200", - "zap_finding_urls": [ - { - "attack": "", - "evidence": "response code 403 for potentially insecure HTTP METHOD", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/m3icel4qks", + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "1", + "zap_count": "19", + "zap_cweid": "20", + "zap_finding_urls": [ + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJiBX&sid=i44E23_d7HysXmYyAAAF", }, { - "attack": "", - "evidence": "response code 403 for potentially insecure HTTP METHOD", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/v95p352358", + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJZAS&sid=xm0oUZMe5lefHrYkAAAB", }, { - "attack": "", - "evidence": "response code 403 for potentially insecure HTTP METHOD", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/1cpka1vqho", + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJkP3&sid=L5sTGQm7gTPIvgamAAAG", }, { - "attack": "", - "evidence": "response code 403 for potentially insecure HTTP METHOD", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/othk2m9rl0", + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwTQ&sid=m1nJpf-U7x4l9EdgAAAK", }, - ], - "zap_otherinfo": "See the discussion on stackexchange: https://security.stackexchange.com/questions/21413/how-to-exploit-http-methods, for understanding REST operations see http://www.restapitutorial.com/lessons/httpmethods.html", - "zap_pluginid": "90028", - "zap_reference": "http://projects.webappsec.org/Fingerprinting", - "zap_riskcode": "2", - "zap_solution": "TBA", - "zap_wascid": "45", - }, - "category": "Insecure HTTP Method - PUT", - "description": "This method was originally intended for file managemant operations. It is now most commonly used in REST services, PUT is most-often utilized for **update** capabilities, PUT-ing to a known resource URI with the request body containing the newly-updated representation of the original resource..", - "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": "TBA", - "name": "Insecure HTTP Method - PUT", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "http://projects.webappsec.org/Fingerprinting", - }, - { - "type": "URL", - "value": "", - }, - { - "type": "CWE", - "value": "CWE-200", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/200.html", - }, - ], - "severity": "MEDIUM", - }, - { - "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "2", - "zap_count": "1", - "zap_cweid": "1021", - "zap_finding_urls": [ { - "attack": "", - "evidence": "", "method": "GET", - "param": "X-Frame-Options", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJv2N&sid=PktdCTeisMU99B0XAAAJ", }, - ], - "zap_otherinfo": null, - "zap_pluginid": "10020", - "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - "zap_riskcode": "2", - "zap_solution": "Modern Web browsers support the Content-Security-Policy and X-Frame-Options HTTP headers. Ensure one of them is set on all web pages returned by your site/app.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. Alternatively consider implementing Content Security Policy's "frame-ancestors" directive.", - "zap_wascid": "15", - }, - "category": "Missing Anti-clickjacking Header", - "description": "The response does not include either Content-Security-Policy with 'frame-ancestors' directive or X-Frame-Options to protect against 'ClickJacking' attacks.", - "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": "Modern Web browsers support the Content-Security-Policy and X-Frame-Options HTTP headers. Ensure one of them is set on all web pages returned by your site/app.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. Alternatively consider implementing Content Security Policy's "frame-ancestors" directive.", - "name": "Missing Anti-clickjacking Header", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - }, - { - "type": "CWE", - "value": "CWE-1021", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/1021.html", - }, - ], - "severity": "MEDIUM", - }, - { - "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "3", - "zap_count": "5", - "zap_cweid": "388", - "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 501", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/9WZL9", + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJec3&sid=N2BAvk-LoI6ydM_fAAAD", }, { - "attack": "", - "evidence": "HTTP/1.1 501", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml5DV53", + "method": "POST", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "HTTP/1.1 501", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/apiR65NV", + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJc38&sid=RwTg5sM3urRvTowDAAAC", }, { - "attack": "", - "evidence": "HTTP/1.1 501", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt13S8Q", + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKABn&sid=OP1vxyAS7ESoZCFeAAAO", }, { - "attack": "", - "evidence": "HTTP/1.1 501", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xmlVXC3F", + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJzWy&sid=NHcMgUohTH8k9p2zAAAL", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJfF2&sid=QfhYpBR7a8XY6KopAAAE", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJqEu&sid=Qno6lcSl69M4txIfAAAI", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJmDG&sid=5CB4rI51v9EBwoLaAAAH", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaU&sid=r2xfyQoKfs1Qc7gKAAAA", + }, + { + "method": "POST", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYKz&sid=r2xfyQoKfs1Qc7gKAAAA", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7mu&sid=0b5CIcRfebjeUP6IAAAN", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK4S_&sid=Snz1P_3VBpE70slrAAAM", + }, + { + "method": "GET", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKC2m&sid=wTbs-39HN_Hq77_nAAAP", }, ], - "zap_otherinfo": null, - "zap_pluginid": "100000", - "zap_reference": null, - "zap_riskcode": "1", - "zap_solution": null, + "zap_otherinfo": "An attacker may be able to poison cookie values through URL parameters. Try injecting a semicolon to see if you can add cookie values (e.g. name=controlledValue;name=anotherValue;).This was identified at:http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJiBX&sid=i44E23_d7HysXmYyAAAFUser-input was found in the following cookie:io=i44E23_d7HysXmYyAAAF; Path=/; HttpOnly; SameSite=StrictThe user input was:sid=i44E23_d7HysXmYyAAAF", + "zap_pluginid": "10029", + "zap_reference": "http://websecuritytool.codeplex.com/wikipage?title=Checks#user-controlled-cookie", + "zap_riskcode": "0", + "zap_solution": "Do not allow user input to control cookie names and values. If some query string parameters must be set in cookie values, be sure to filter out semicolon's that can serve as name/value pair delimiters.", "zap_wascid": "20", }, - "category": "A Server Error response code was returned by the server", - "description": "A response code of 501 was returned by the server.This may indicate that the application is failing to handle unexpected input correctly.Raised by the 'Alert on HTTP Response Code Error' script", + "category": "Cookie Poisoning", + "description": "This check looks at user-supplied input in query string parameters and POST data to identify where cookie parameters might be controlled. This is called a cookie poisoning attack, and becomes exploitable when an attacker can manipulate the cookie in various ways. In some cases this will not be exploitable, however, allowing URL parameters to set cookie values is generally considered a bug.", "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": null, - "name": "A Server Error response code was returned by the server", + "location": "http://juice-shop:3000", + "mitigation": "Do not allow user input to control cookie names and values. If some query string parameters must be set in cookie values, be sure to filter out semicolon's that can serve as name/value pair delimiters.", + "name": "Cookie Poisoning", "osi_layer": "APPLICATION", "references": [ + { + "type": "URL", + "value": "http://websecuritytool.codeplex.com/wikipage?title=Checks#user-controlled-cookie", + }, { "type": "CWE", - "value": "CWE-388", + "value": "CWE-20", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/388.html", + "value": "https://cwe.mitre.org/data/definitions/20.html", }, ], - "severity": "LOW", + "severity": "INFORMATIONAL", }, { "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "3", - "zap_count": "4", + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "1", + "zap_count": "29", "zap_cweid": "200", "zap_finding_urls": [ { - "attack": "", - "evidence": "Apache-Coyote/1.1", + "evidence": "1970691216", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", + "uri": "http://juice-shop:3000/rest/admin/application-configuration", }, { - "attack": "", - "evidence": "Apache-Coyote/1.1", + "evidence": "1970691216", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml", + "uri": "http://juice-shop:3000/rest/products/search?q=", }, { - "attack": "", - "evidence": "Apache-Coyote/1.1", + "evidence": "179464974", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt", + "uri": "http://juice-shop:3000/vendor-es5.js", }, { - "attack": "", - "evidence": "Apache-Coyote/1.1", + "evidence": "0000039834", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml", + "uri": "http://juice-shop:3000/vendor-es5.js", }, - ], - "zap_otherinfo": null, - "zap_pluginid": "10036", - "zap_reference": "http://httpd.apache.org/docs/current/mod/core.html#servertokenshttp://msdn.microsoft.com/en-us/library/ff648552.aspx#ht_urlscan_007http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspxhttp://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html", - "zap_riskcode": "1", - "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.", - "zap_wascid": "13", - }, - "category": "Server Leaks Version Information via "Server" HTTP Response Header Field", - "description": "The web/application server is leaking version information via the "Server" HTTP response header. Access to such information may facilitate attackers identifying other vulnerabilities your web/application server is subject to.", - "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.", - "name": "Server Leaks Version Information via "Server" HTTP Response Header Field", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "http://httpd.apache.org/docs/current/mod/core.html#servertokens", - }, - { - "type": "URL", - "value": "http://msdn.microsoft.com/en-us/library/ff648552.aspx#ht_urlscan_007", - }, - { - "type": "URL", - "value": "http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspx", - }, - { - "type": "URL", - "value": "http://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html", - }, - { - "type": "CWE", - "value": "CWE-200", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/200.html", - }, - ], - "severity": "LOW", - }, - { - "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "3", - "zap_count": "105", - "zap_cweid": "-1", - "zap_finding_urls": [ { - "attack": "", - "evidence": "text/html", + "evidence": "597720130", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", + "uri": "http://juice-shop:3000/vendor-es2018.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "1801948466", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/", + "uri": "http://juice-shop:3000/vendor-es2018.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "1803700518", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.DS_Store", + "uri": "http://juice-shop:3000/vendor-es5.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "33335333", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.env", + "uri": "http://juice-shop:3000/styles.css", }, { - "attack": "", - "evidence": "text/html", + "evidence": "0000051215", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.git/config", + "uri": "http://juice-shop:3000/vendor-es5.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "33333333", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.htaccess", + "uri": "http://juice-shop:3000/styles.css", }, { - "attack": "", - "evidence": "text/html", + "evidence": "0000000005", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.idea/WebServers.xml", + "uri": "http://juice-shop:3000/vendor-es2018.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "0000000005", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.php_cs.cache", + "uri": "http://juice-shop:3000/vendor-es5.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "33334333", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.ssh/id_dsa", + "uri": "http://juice-shop:3000/styles.css", }, { - "attack": "", - "evidence": "text/html", + "evidence": "94906265", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.ssh/id_rsa", + "uri": "http://juice-shop:3000/polyfills-es5.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "1801949248", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.svn/entries", + "uri": "http://juice-shop:3000/vendor-es2018.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "1801948466", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/8732990967634790318", + "uri": "http://juice-shop:3000/vendor-es5.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "1803700518", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/?-s", + "uri": "http://juice-shop:3000/vendor-es2018.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "1969196030", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/?name=abc", + "uri": "http://juice-shop:3000/rest/admin/application-configuration", }, { - "attack": "", - "evidence": "text/html", + "evidence": "62425156", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/adminer.php", + "uri": "http://juice-shop:3000/polyfills-es5.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "597720130", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api", + "uri": "http://juice-shop:3000/vendor-es5.js", }, + ], + "zap_otherinfo": "1970691216, which evaluates to: 2032-06-12 22:13:36", + "zap_pluginid": "10096", + "zap_reference": "http://projects.webappsec.org/w/page/13246936/Information%20Leakage", + "zap_riskcode": "0", + "zap_solution": "Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.", + "zap_wascid": "13", + }, + "category": "Timestamp Disclosure - Unix", + "description": "A timestamp was disclosed by the application/web server - Unix", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.", + "name": "Timestamp Disclosure - Unix", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "http://projects.webappsec.org/w/page/13246936/Information%20Leakage", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/200.html", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "3", + "zap_count": "35", + "zap_cweid": "200", + "zap_finding_urls": [ { - "attack": "", - "evidence": "text/html", + "evidence": "m1nJpf-U7x4l9EdgAAAK", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwTQ&sid=m1nJpf-U7x4l9EdgAAAK", }, { - "attack": "", - "evidence": "text/html", + "evidence": "N2BAvk-LoI6ydM_fAAAD", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/.env", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=N2BAvk-LoI6ydM_fAAAD", }, { - "attack": "", - "evidence": "text/html", + "evidence": "OP1vxyAS7ESoZCFeAAAO", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/.htaccess", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKABn&sid=OP1vxyAS7ESoZCFeAAAO", }, { - "attack": "", - "evidence": "text/html", + "evidence": "N2BAvk-LoI6ydM_fAAAD", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/8756109290027926951", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJec3&sid=N2BAvk-LoI6ydM_fAAAD", }, { - "attack": "", - "evidence": "text/html", + "evidence": "PktdCTeisMU99B0XAAAJ", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=PktdCTeisMU99B0XAAAJ", }, { - "attack": "", - "evidence": "text/html", + "evidence": "r2xfyQoKfs1Qc7gKAAAA", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaU&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "text/html", + "evidence": "RwTg5sM3urRvTowDAAAC", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/8co5j/bl2sm", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=RwTg5sM3urRvTowDAAAC", }, { - "attack": "", - "evidence": "text/html", + "evidence": "NHcMgUohTH8k9p2zAAAL", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml?name=abc", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=NHcMgUohTH8k9p2zAAAL", }, { - "attack": "", - "evidence": "text/html", + "evidence": "PktdCTeisMU99B0XAAAJ", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/trace.axd", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJv2N&sid=PktdCTeisMU99B0XAAAJ", }, { - "attack": "", - "evidence": "text/html", + "evidence": "m1nJpf-U7x4l9EdgAAAK", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api?name=abc", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=m1nJpf-U7x4l9EdgAAAK", }, { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/app/etc/local.xml", + "evidence": "r2xfyQoKfs1Qc7gKAAAA", + "method": "POST", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "image/png", + "evidence": "wTbs-39HN_Hq77_nAAAP", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/asf-logo.png", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=wTbs-39HN_Hq77_nAAAP", }, { - "attack": "", - "evidence": "image/png", + "evidence": "Snz1P_3VBpE70slrAAAM", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/bg-button.png", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=Snz1P_3VBpE70slrAAAM", }, { - "attack": "", - "evidence": "image/png", + "evidence": "r2xfyQoKfs1Qc7gKAAAA", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/bg-middle.png", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "image/png", + "evidence": "Qno6lcSl69M4txIfAAAI", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/bg-nav.png", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJqEu&sid=Qno6lcSl69M4txIfAAAI", }, { - "attack": "", - "evidence": "image/png", + "evidence": "5CB4rI51v9EBwoLaAAAH", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/bg-upper.png", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJmDG&sid=5CB4rI51v9EBwoLaAAAH", }, { - "attack": "", - "evidence": "text/html", + "evidence": "0b5CIcRfebjeUP6IAAAN", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/CHANGELOG.txt", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=0b5CIcRfebjeUP6IAAAN", }, { - "attack": "", - "evidence": "text/html", + "evidence": "wTbs-39HN_Hq77_nAAAP", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/clientaccesspolicy.xml", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKC2m&sid=wTbs-39HN_Hq77_nAAAP", }, { - "attack": "", - "evidence": "text/html", + "evidence": "QfhYpBR7a8XY6KopAAAE", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/composer.json", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=websocket&sid=QfhYpBR7a8XY6KopAAAE", }, { - "attack": "", - "evidence": "text/html", + "evidence": "L5sTGQm7gTPIvgamAAAG", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/composer.lock", + "param": "sid", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJkP3&sid=L5sTGQm7gTPIvgamAAAG", }, + ], + "zap_otherinfo": null, + "zap_pluginid": "3", + "zap_reference": "http://seclists.org/lists/webappsec/2002/Oct-Dec/0111.html", + "zap_riskcode": "2", + "zap_solution": "For secure content, put session ID in a cookie. To be even more secure consider using a combination of cookie and URL rewrite.", + "zap_wascid": "13", + }, + "category": "Session ID in URL Rewrite", + "description": "URL rewrite is used to track user session ID. The session ID may be disclosed via cross-site referer header. In addition, the session ID might be stored in browser history or server logs.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "For secure content, put session ID in a cookie. To be even more secure consider using a combination of cookie and URL rewrite.", + "name": "Session ID in URL Rewrite", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "http://seclists.org/lists/webappsec/2002/Oct-Dec/0111.html", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/200.html", + }, + ], + "severity": "MEDIUM", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "2", + "zap_count": "7", + "zap_cweid": null, + "zap_finding_urls": [ { - "attack": "", - "evidence": "text/html", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/config/database.yml", + "uri": "http://juice-shop:3000", }, { - "attack": "", - "evidence": "text/html", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/core", + "uri": "http://juice-shop:3000/sitemap.xml", }, { - "attack": "", - "evidence": "text/html", + "evidence": "",'", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/crossdomain.xml", + "uri": "http://juice-shop:3000/tutorial-es2018.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/CVS/root", + "uri": "http://juice-shop:3000/", }, { - "attack": "", - "evidence": "text/html", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/DEADJOE", + "uri": "http://juice-shop:3000/polyfills-es5.js", }, { - "attack": "", - "evidence": "text/html", + "evidence": "ftp", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/appdev/", + "uri": "http://juice-shop:3000/ftp/", }, + ], + "zap_otherinfo": "No links have been found while there are scripts, which is an indication that this is a modern web application.", + "zap_pluginid": "10109", + "zap_reference": null, + "zap_riskcode": "0", + "zap_solution": "This is an informational alert and so no changes are required.", + "zap_wascid": null, + }, + "category": "Modern Web Application", + "description": "The application appears to be a modern web application. If you need to explore it automatically then the Ajax Spider may well be more effective than the standard one.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "This is an informational alert and so no changes are required.", + "name": "Modern Web Application", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "1", + "zap_count": "35", + "zap_cweid": "565", + "zap_finding_urls": [ { - "attack": "", - "evidence": "image/png", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/asf-feather.png", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJiBX&sid=i44E23_d7HysXmYyAAAF", }, { - "attack": "", - "evidence": "text/css", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/docs-stylesheet.css", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJf4l", }, { - "attack": "", - "evidence": "text/css", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/fonts/fonts.css", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJmAk", }, { - "attack": "", - "evidence": "application/x-font-woff", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/fonts/OpenSans400.woff", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJv2N&sid=PktdCTeisMU99B0XAAAJ", }, { - "attack": "", - "evidence": "application/x-font-woff", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/fonts/OpenSans400italic.woff", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJkNZ", }, { - "attack": "", - "evidence": "application/x-font-woff", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/fonts/OpenSans600.woff", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKC1F", }, { - "attack": "", - "evidence": "application/x-font-woff", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/fonts/OpenSans700.woff", + "method": "POST", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "image/png", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/images/tomcat.png", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJq6f", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/docs/jndi-datasource-examples-howto.html", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJc38&sid=RwTg5sM3urRvTowDAAAC", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/elmah.axd", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKAAX", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/examples/", - }, - { - "attack": "", - "evidence": "image/x-icon", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/favicon.ico", - }, - { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/filezilla.xml", - }, - { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/host-manager/html", - }, - { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/id_dsa", - }, - { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/id_rsa", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJeSU", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/key.pem", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJec3&sid=N2BAvk-LoI6ydM_fAAAD", }, { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/lfm.php", + "method": "POST", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/manager/html", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK4Is", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/manager/status", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJY_O", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/myserver.key", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwTQ&sid=m1nJpf-U7x4l9EdgAAAK", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/privatekey.key", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJfF2&sid=QfhYpBR7a8XY6KopAAAE", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJZAS&sid=xm0oUZMe5lefHrYkAAAB", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7mu&sid=0b5CIcRfebjeUP6IAAAN", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/8co5j/bl2sm", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwR_", }, + ], + "zap_otherinfo": "The origin domain used for comparison was: juice-shopio=i44E23_d7HysXmYyAAAF", + "zap_pluginid": "90033", + "zap_reference": "https://tools.ietf.org/html/rfc6265#section-4.1https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes.htmlhttp://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_cookies", + "zap_riskcode": "0", + "zap_solution": "Always scope cookies to a FQDN (Fully Qualified Domain Name).", + "zap_wascid": "15", + }, + "category": "Loosely Scoped Cookie", + "description": "Cookies can be scoped by domain or path. This check is only concerned with domain scope.The domain scope applied to a cookie determines which domains can access it. For example, a cookie can be scoped strictly to a subdomain e.g. www.nottrusted.com, or loosely scoped to a parent domain e.g. nottrusted.com. In the latter case, any subdomain of nottrusted.com can access the cookie. Loosely scoped cookies are common in mega-applications like google.com and live.com. Cookies set from a subdomain like app.foo.bar are transmitted only to that domain by the browser. However, cookies scoped to a parent-level domain may be transmitted to the parent, or any subdomain of the parent.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "Always scope cookies to a FQDN (Fully Qualified Domain Name).", + "name": "Loosely Scoped Cookie", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "https://tools.ietf.org/html/rfc6265#section-4.1", + }, + { + "type": "URL", + "value": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes.html", + }, + { + "type": "URL", + "value": "http://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_cookies", + }, + { + "type": "CWE", + "value": "CWE-565", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/565.html", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "2", + "zap_count": "35", + "zap_cweid": "16", + "zap_finding_urls": [ { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt?name=abc", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJzM-", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/server-info", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYKz&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/server-status", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJc38&sid=RwTg5sM3urRvTowDAAAC", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/server.key", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7mu&sid=0b5CIcRfebjeUP6IAAAN", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sftp-config.json", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwR_", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemanager.xml", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJv0-", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKABn&sid=OP1vxyAS7ESoZCFeAAAO", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJmAk", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/8co5j/bl2sm", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJkNZ", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml?name=abc", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJeSU", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sites/default/files/.ht.sqlite", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaU&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sites/default/private/files/backup_migrate/scheduled/test.txt", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJY_O", }, { - "attack": "", - "evidence": "text/css", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/tomcat.css", + "method": "POST", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "image/png", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/tomcat.png", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJfF2&sid=QfhYpBR7a8XY6KopAAAE", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/trace.axd", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJq6f", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/vim_settings.xml", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJZAS&sid=xm0oUZMe5lefHrYkAAAB", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/applicationContext.xml", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJh_q", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/classes/8/0/37.class", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7eA", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/classes/A/name.class", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKC1F", }, { - "attack": "", - "evidence": "text/html", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/web.xml", - }, - { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/winscp.ini", - }, - { - "attack": "", - "evidence": "text/html", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WS_FTP.ini", - }, - { - "attack": "", - "evidence": "text/html", - "method": "OPTIONS", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", - }, - { - "attack": "", - "evidence": "text/html", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "text/html", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "text/html", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "text/html", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "text/html", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "text/html", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/m3icel4qks", - }, - { - "attack": "", - "evidence": "text/html", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/v95p352358", - }, - { - "attack": "", - "evidence": "text/html", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/1cpka1vqho", - }, - { - "attack": "", - "evidence": "text/html", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/othk2m9rl0", - }, - { - "attack": "", - "evidence": "text/html", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/9WZL9", - }, - { - "attack": "", - "evidence": "text/html", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml5DV53", - }, - { - "attack": "", - "evidence": "text/html", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/apiR65NV", - }, - { - "attack": "", - "evidence": "text/html", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt13S8Q", - }, - { - "attack": "", - "evidence": "text/html", - "method": "TRACK", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xmlVXC3F", - }, - ], - "zap_otherinfo": null, - "zap_pluginid": "100001", - "zap_reference": null, - "zap_riskcode": "1", - "zap_solution": null, - "zap_wascid": "-1", - }, - "category": "Unexpected Content-Type was returned", - "description": "A Content-Type of text/html was returned by the server.This is not one of the types expected to be returned by an API.Raised by the 'Alert on Unexpected Content Types' script", - "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": null, - "name": "Unexpected Content-Type was returned", - "osi_layer": "APPLICATION", - "references": null, - "severity": "LOW", - }, - { - "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "2", - "zap_count": "1", - "zap_cweid": "693", - "zap_finding_urls": [ - { - "attack": "", - "evidence": "", - "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", + "param": "X-Content-Type-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK4Is", }, ], "zap_otherinfo": "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.At "High" threshold this scan rule will not alert on client or server error responses.", @@ -1252,7 +885,7 @@ exports[`Parsing a bodgeit result. 1`] = ` "category": "X-Content-Type-Options Header Missing", "description": "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.", "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", + "location": "http://juice-shop:3000", "mitigation": "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.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.", "name": "X-Content-Type-Options Header Missing", "osi_layer": "APPLICATION", @@ -1267,667 +900,635 @@ exports[`Parsing a bodgeit result. 1`] = ` }, { "type": "CWE", - "value": "CWE-693", + "value": "CWE-16", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/693.html", + "value": "https://cwe.mitre.org/data/definitions/16.html", }, ], "severity": "LOW", }, { "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "3", - "zap_count": "81", - "zap_cweid": "388", + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "1", + "zap_count": "7", + "zap_cweid": "200", "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.DS_Store", + "uri": "http://juice-shop:3000/tutorial-es2018.js", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.env", + "uri": "http://juice-shop:3000/main-es5.js", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.git/config", + "uri": "http://juice-shop:3000/vendor-es2018.js", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.htaccess", + "uri": "http://juice-shop:3000/main-es2018.js", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.idea/WebServers.xml", + "uri": "http://juice-shop:3000/polyfills-es2018.js", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.php_cs.cache", + "uri": "http://juice-shop:3000/vendor-es5.js", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.ssh/id_dsa", + "uri": "http://juice-shop:3000/polyfills-es5.js", }, + ], + "zap_otherinfo": "The following comment/snippet was identified via the pattern: \\bQUERY\\b(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{s2oO:function(e,t,o){"use strict";o.r(t),o.d(t,"hasInstructions",(function(){return q})),o.d(t,"startHackingInstructorFor",(function(){return M}));var a={"":["",""],_:["",""],"\\n":[""]," ":[""],"-":[""]};function r(e){return e.replace(RegExp("^"+(e.match(/^(\\t| )+/)||"")[0],"gm"),"")}function n(e){return(e+"").replace(/"/g,""").replace(//g,">")}function i(e){return new Promise(t=>{setTimeout(t,e)})}function s(e,t,o={ignoreCase:!0}){return async()=>{const a=document.querySelector(e);for(;a.value!==t&&(!o.ignoreCase||a.value.toLowerCase()!==t.toLowerCase());)await i(100)}}function l(e,t,o={ignoreCase:!0}){return async()=>{const a=document.querySelector(e);for(;a.value===t&&(!o.ignoreCase||a.value.toLowerCase()!==t.toLowerCase());)await i(100)}}function u(e){return async()=>{const t=document.querySelector(e);for(;!t.value||""===t.value;)await i(100)}}function p(e){return async()=>{const t=document.querySelector(e);t||console.warn(\`Could not find Element with selector "\${e}"\`),await new Promise(e=>{t.addEventListener("click",()=>e())})}}function d(e,t){return async()=>{for(;;){const o=document.querySelector(e);if(o&&o.innerHTML===t)break;await i(100)}}}function c(e){return()=>i(e)}function h(e){return async()=>{for(;window.location.hash!=="#/"+e;)await i(100)}}function f(){return async()=>{for(;null===localStorage.getItem("token");)await i(100)}}function m(){return async()=>{for(;null!==localStorage.getItem("token");)await i(100)}}function g(){let e=!1;const t=new Image;return Object.defineProperty(t,"id",{get:function(){e=!0}}),async()=>{for(;console.dir(t),!e;)await i(100)}}const b={name:"Login Admin",hints:[{text:"To start this challenge, you'll have to log out first.",fixture:"#navbarAccount",unskippable:!0,resolved:m()},{text:"Let's try if we find a way to log in with the administrator's user account. To begin, go to the _Login_ page via the _Account_ menu.",fixture:"app-navbar"...", + "zap_pluginid": "10027", + "zap_reference": null, + "zap_riskcode": "0", + "zap_solution": "Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.", + "zap_wascid": "13", + }, + "category": "Information Disclosure - Suspicious Comments", + "description": "The response appears to contain suspicious comments which may help an attacker. Note: Matches made within script blocks or files are against the entire content not only comments.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.", + "name": "Information Disclosure - Suspicious Comments", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/200.html", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "2", + "zap_count": "13", + "zap_cweid": "16", + "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.ssh/id_rsa", + "uri": "http://juice-shop:3000/ftp/coupons_2013.md.bak", }, { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/.svn/entries", + "method": "POST", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/8732990967634790318", + "uri": "http://juice-shop:3000/ftp/", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/adminer.php", + "uri": "http://juice-shop:3000/", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api", + "uri": "http://juice-shop:3000", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/", + "uri": "http://juice-shop:3000/sitemap.xml", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/.env", + "uri": "http://juice-shop:3000/ftp/package.json.bak", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/.htaccess", + "uri": "http://juice-shop:3000/ftp/suspicious_errors.yml", }, { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/8756109290027926951", + "method": "POST", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml", + "uri": "http://juice-shop:3000/ftp/eastere.gg", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/", + "uri": "http://juice-shop:3000/ftp/quarantine", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/8co5j/bl2sm", + "uri": "http://juice-shop:3000/ftp", }, { - "attack": "", - "evidence": "HTTP/1.1 404", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml?name=abc", + "uri": "http://juice-shop:3000/ftp/encrypt.pyc", }, + ], + "zap_otherinfo": null, + "zap_pluginid": "10038", + "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policyhttps://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.htmlhttp://www.w3.org/TR/CSP/http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.htmlhttp://www.html5rocks.com/en/tutorials/security/content-security-policy/http://caniuse.com/#feat=contentsecuritypolicyhttp://content-security-policy.com/", + "zap_riskcode": "1", + "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", + "zap_wascid": "15", + }, + "category": "Content Security Policy (CSP) Header Not Set", + "description": "Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", + "name": "Content Security Policy (CSP) Header Not Set", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy", + }, + { + "type": "URL", + "value": "https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html", + }, + { + "type": "URL", + "value": "http://www.w3.org/TR/CSP/", + }, + { + "type": "URL", + "value": "http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html", + }, + { + "type": "URL", + "value": "http://www.html5rocks.com/en/tutorials/security/content-security-policy/", + }, + { + "type": "URL", + "value": "http://caniuse.com/#feat=contentsecuritypolicy", + }, + { + "type": "URL", + "value": "http://content-security-policy.com/", + }, + { + "type": "CWE", + "value": "CWE-16", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/16.html", + }, + ], + "severity": "LOW", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "2", + "zap_count": "6", + "zap_cweid": "829", + "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/trace.axd", + "param": "//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js", + "uri": "http://juice-shop:3000", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api?name=abc", + "param": "//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js", + "uri": "http://juice-shop:3000/sitemap.xml", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/app/etc/local.xml", + "param": "//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js", + "uri": "http://juice-shop:3000/", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/CHANGELOG.txt", + "param": "//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js", + "uri": "http://juice-shop:3000/", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/clientaccesspolicy.xml", + "param": "//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js", + "uri": "http://juice-shop:3000/sitemap.xml", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/composer.json", + "param": "//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js", + "uri": "http://juice-shop:3000", }, + ], + "zap_otherinfo": null, + "zap_pluginid": "10017", + "zap_reference": null, + "zap_riskcode": "1", + "zap_solution": "Ensure JavaScript source files are loaded from only trusted sources, and the sources can't be controlled by end users of the application.", + "zap_wascid": "15", + }, + "category": "Cross-Domain JavaScript Source File Inclusion", + "description": "The page includes one or more script files from a third-party domain.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "Ensure JavaScript source files are loaded from only trusted sources, and the sources can't be controlled by end users of the application.", + "name": "Cross-Domain JavaScript Source File Inclusion", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "", + }, + { + "type": "CWE", + "value": "CWE-829", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/829.html", + }, + ], + "severity": "LOW", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "2", + "zap_count": "2", + "zap_cweid": "16", + "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/composer.lock", + "method": "POST", + "param": "X-Frame-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", }, { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/config/database.yml", + "method": "POST", + "param": "X-Frame-Options", + "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", }, + ], + "zap_otherinfo": null, + "zap_pluginid": "10020", + "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", + "zap_riskcode": "2", + "zap_solution": "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).", + "zap_wascid": "15", + }, + "category": "X-Frame-Options Header Not Set", + "description": "X-Frame-Options header is not included in the HTTP response to protect against 'ClickJacking' attacks.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "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).", + "name": "X-Frame-Options Header Not Set", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", + }, + { + "type": "CWE", + "value": "CWE-16", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/16.html", + }, + ], + "severity": "MEDIUM", + }, + { + "attributes": { + "hostname": "juice-shop", + "port": "3000", + "zap_confidence": "2", + "zap_count": "1", + "zap_cweid": "200", + "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "192.168.99.100:3000", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/config/databases.yml", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/core", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/crossdomain.xml", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/CVS/root", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/DEADJOE", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/elmah.axd", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/filezilla.xml", - }, - { - "attack": "", - "evidence": "HTTP/1.1 401", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/host-manager/html", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/id_dsa", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/id_rsa", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/key.pem", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/lfm.php", - }, - { - "attack": "", - "evidence": "HTTP/1.1 401", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/manager/html", - }, - { - "attack": "", - "evidence": "HTTP/1.1 401", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/manager/status", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/myserver.key", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/privatekey.key", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/8co5j/bl2sm", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt?name=abc", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/server-info", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/server-status", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/server.key", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sftp-config.json", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemanager.xml", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/8co5j/bl2sm", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml?name=abc", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sites/default/files/.ht.sqlite", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sites/default/private/files/backup_migrate/scheduled/test.txt", + "uri": "http://juice-shop:3000/rest/admin/application-configuration", }, + ], + "zap_otherinfo": "192.168.99.100:3000", + "zap_pluginid": "2", + "zap_reference": "https://tools.ietf.org/html/rfc1918", + "zap_riskcode": "1", + "zap_solution": "Remove the private IP address from the HTTP response body. For comments, use JSP/ASP/PHP comment instead of HTML/JavaScript comment which can be seen by client browsers.", + "zap_wascid": "13", + }, + "category": "Private IP Disclosure", + "description": "A private IP (such as 10.x.x.x, 172.x.x.x, 192.168.x.x) or an Amazon EC2 private hostname (for example, ip-10-0-56-78) has been found in the HTTP response body. This information might be helpful for further attacks targeting internal systems.", + "hint": null, + "location": "http://juice-shop:3000", + "mitigation": "Remove the private IP address from the HTTP response body. For comments, use JSP/ASP/PHP comment instead of HTML/JavaScript comment which can be seen by client browsers.", + "name": "Private IP Disclosure", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "https://tools.ietf.org/html/rfc1918", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/200.html", + }, + ], + "severity": "LOW", + }, +] +`; + +exports[`Parsing the example.com results. 1`] = ` +[ + { + "attributes": { + "hostname": "example.com", + "port": "80", + "zap_confidence": "3", + "zap_count": "4", + "zap_cweid": "200", + "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "ECS (mic/9B13)", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/trace.axd", + "uri": "http://example.com/robots.txt", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "ECS (mic/9A9C)", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/vim_settings.xml", + "uri": "http://example.com", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "ECS (dab/4AD5)", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/applicationContext.xml", + "uri": "http://example.com/sitemap.xml", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "ECS (dab/DC46)", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/classes/8/0/37.class", + "uri": "http://example.com/", }, + ], + "zap_otherinfo": null, + "zap_pluginid": "10036", + "zap_reference": "http://httpd.apache.org/docs/current/mod/core.html#servertokenshttp://msdn.microsoft.com/en-us/library/ff648552.aspx#ht_urlscan_007http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspxhttp://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html", + "zap_riskcode": "1", + "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.", + "zap_wascid": "13", + }, + "category": "Server Leaks Version Information via "Server" HTTP Response Header Field", + "description": "The web/application server is leaking version information via the "Server" HTTP response header. Access to such information may facilitate attackers identifying other vulnerabilities your web/application server is subject to.", + "hint": null, + "location": "http://example.com", + "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.", + "name": "Server Leaks Version Information via "Server" HTTP Response Header Field", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "http://httpd.apache.org/docs/current/mod/core.html#servertokens", + }, + { + "type": "URL", + "value": "http://msdn.microsoft.com/en-us/library/ff648552.aspx#ht_urlscan_007", + }, + { + "type": "URL", + "value": "http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspx", + }, + { + "type": "URL", + "value": "http://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html", + }, + { + "type": "CWE", + "value": "CWE-200", + }, + { + "type": "URL", + "value": "https://cwe.mitre.org/data/definitions/200.html", + }, + ], + "severity": "LOW", + }, + { + "attributes": { + "hostname": "example.com", + "port": "80", + "zap_confidence": "2", + "zap_count": "4", + "zap_cweid": null, + "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "Age: 214571", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/classes/A/name.class", + "uri": "http://example.com/robots.txt", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "HIT", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/web.xml", + "uri": "http://example.com", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "Age: 447454", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/winscp.ini", + "uri": "http://example.com/sitemap.xml", }, { - "attack": "", - "evidence": "HTTP/1.1 404", + "evidence": "HIT", "method": "GET", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/WS_FTP.ini", - }, - { - "attack": "", - "evidence": "HTTP/1.1 405", - "method": "OPTIONS", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "HTTP/1.1 404", - "method": "POST", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", - }, - { - "attack": "", - "evidence": "HTTP/1.1 403", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/m3icel4qks", - }, - { - "attack": "", - "evidence": "HTTP/1.1 403", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/v95p352358", - }, - { - "attack": "", - "evidence": "HTTP/1.1 403", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/1cpka1vqho", - }, - { - "attack": "", - "evidence": "HTTP/1.1 403", - "method": "PUT", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/othk2m9rl0", - }, - { - "attack": "", - "evidence": "HTTP/1.1 405", - "method": "TRACE", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080", + "uri": "http://example.com/", }, + ], + "zap_otherinfo": "The presence of the 'Age' header indicates that that a HTTP/1.1 compliant caching server is in use.", + "zap_pluginid": "10050", + "zap_reference": "https://tools.ietf.org/html/rfc7234https://tools.ietf.org/html/rfc7231http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html (obsoleted by rfc7234)", + "zap_riskcode": "0", + "zap_solution": "Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:Cache-Control: no-cache, no-store, must-revalidate, privatePragma: no-cacheExpires: 0This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.", + "zap_wascid": null, + }, + "category": "Retrieved from Cache", + "description": "The content was retrieved from a shared cache. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where caching servers such as "proxy" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance. ", + "hint": null, + "location": "http://example.com", + "mitigation": "Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:Cache-Control: no-cache, no-store, must-revalidate, privatePragma: no-cacheExpires: 0This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.", + "name": "Retrieved from Cache", + "osi_layer": "APPLICATION", + "references": [ + { + "type": "URL", + "value": "https://tools.ietf.org/html/rfc7234", + }, + { + "type": "URL", + "value": "https://tools.ietf.org/html/rfc7231", + }, + { + "type": "URL", + "value": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html (obsoleted by rfc7234)", + }, + ], + "severity": "INFORMATIONAL", + }, + { + "attributes": { + "hostname": "example.com", + "port": "80", + "zap_confidence": "2", + "zap_count": "4", + "zap_cweid": "16", + "zap_finding_urls": [ { - "attack": "", - "evidence": "HTTP/1.1 405", - "method": "TRACE", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api", + "method": "GET", + "uri": "http://example.com/sitemap.xml", }, { - "attack": "", - "evidence": "HTTP/1.1 405", - "method": "TRACE", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml", + "method": "GET", + "uri": "http://example.com/robots.txt", }, { - "attack": "", - "evidence": "HTTP/1.1 405", - "method": "TRACE", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt", + "method": "GET", + "uri": "http://example.com/", }, { - "attack": "", - "evidence": "HTTP/1.1 405", - "method": "TRACE", - "param": "", - "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml", + "method": "GET", + "uri": "http://example.com", }, ], "zap_otherinfo": null, - "zap_pluginid": "100000", - "zap_reference": null, - "zap_riskcode": "0", - "zap_solution": null, - "zap_wascid": "20", + "zap_pluginid": "10038", + "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policyhttps://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.htmlhttp://www.w3.org/TR/CSP/http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.htmlhttp://www.html5rocks.com/en/tutorials/security/content-security-policy/http://caniuse.com/#feat=contentsecuritypolicyhttp://content-security-policy.com/", + "zap_riskcode": "1", + "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", + "zap_wascid": "15", }, - "category": "A Client Error response code was returned by the server", - "description": "A response code of 404 was returned by the server.This may indicate that the application is failing to handle unexpected input correctly.Raised by the 'Alert on HTTP Response Code Error' script", + "category": "Content Security Policy (CSP) Header Not Set", + "description": "Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.", "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": null, - "name": "A Client Error response code was returned by the server", + "location": "http://example.com", + "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", + "name": "Content Security Policy (CSP) Header Not Set", "osi_layer": "APPLICATION", "references": [ + { + "type": "URL", + "value": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy", + }, + { + "type": "URL", + "value": "https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html", + }, + { + "type": "URL", + "value": "http://www.w3.org/TR/CSP/", + }, + { + "type": "URL", + "value": "http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html", + }, + { + "type": "URL", + "value": "http://www.html5rocks.com/en/tutorials/security/content-security-policy/", + }, + { + "type": "URL", + "value": "http://caniuse.com/#feat=contentsecuritypolicy", + }, + { + "type": "URL", + "value": "http://content-security-policy.com/", + }, { "type": "CWE", - "value": "CWE-388", + "value": "CWE-16", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/388.html", + "value": "https://cwe.mitre.org/data/definitions/16.html", }, ], - "severity": "INFORMATIONAL", + "severity": "LOW", }, { "attributes": { - "hostname": "bodgeit.securecodebox-demo.svc", - "port": "8080", - "zap_confidence": "0", - "zap_count": "0", - "zap_cweid": "311", - "zap_finding_urls": [], - "zap_otherinfo": "Failed to connect.ZAP attempted to connect via: https://bodgeit.securecodebox-demo.svc:443", - "zap_pluginid": "10106", - "zap_reference": "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.htmlhttps://letsencrypt.org/", - "zap_riskcode": "2", - "zap_solution": "Configure your web or application server to use SSL (https).", - "zap_wascid": "4", + "hostname": "example.com", + "port": "80", + "zap_confidence": "2", + "zap_count": "2", + "zap_cweid": "16", + "zap_finding_urls": [ + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "http://example.com", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "http://example.com/", + }, + ], + "zap_otherinfo": "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.At "High" threshold this scan rule will not alert on client or server error responses.", + "zap_pluginid": "10021", + "zap_reference": "http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspxhttps://owasp.org/www-community/Security_Headers", + "zap_riskcode": "1", + "zap_solution": "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.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.", + "zap_wascid": "15", }, - "category": "HTTP Only Site", - "description": "The site is only served under HTTP and not HTTPS.", + "category": "X-Content-Type-Options Header Missing", + "description": "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.", "hint": null, - "location": "http://bodgeit.securecodebox-demo.svc:8080", - "mitigation": "Configure your web or application server to use SSL (https).", - "name": "HTTP Only Site", + "location": "http://example.com", + "mitigation": "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.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.", + "name": "X-Content-Type-Options Header Missing", "osi_layer": "APPLICATION", "references": [ { "type": "URL", - "value": "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", + "value": "http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx", }, { "type": "URL", - "value": "https://letsencrypt.org/", + "value": "https://owasp.org/www-community/Security_Headers", }, { "type": "CWE", - "value": "CWE-311", + "value": "CWE-16", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/311.html", + "value": "https://cwe.mitre.org/data/definitions/16.html", }, ], - "severity": "MEDIUM", + "severity": "LOW", }, -] -`; - -exports[`Parsing a nginx result. 1`] = ` -[ { "attributes": { - "hostname": "nginx.demo-targets.svc", + "hostname": "example.com", "port": "80", "zap_confidence": "2", "zap_count": "2", @@ -1936,12 +1537,12 @@ exports[`Parsing a nginx result. 1`] = ` { "method": "GET", "param": "X-Frame-Options", - "uri": "http://nginx.demo-targets.svc", + "uri": "http://example.com", }, { "method": "GET", "param": "X-Frame-Options", - "uri": "http://nginx.demo-targets.svc/", + "uri": "http://example.com/", }, ], "zap_otherinfo": null, @@ -1954,7 +1555,7 @@ exports[`Parsing a nginx result. 1`] = ` "category": "X-Frame-Options Header Not Set", "description": "X-Frame-Options header is not included in the HTTP response to protect against 'ClickJacking' attacks.", "hint": null, - "location": "http://nginx.demo-targets.svc", + "location": "http://example.com", "mitigation": "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).", "name": "X-Frame-Options Header Not Set", "osi_layer": "APPLICATION", @@ -1974,65 +1575,128 @@ exports[`Parsing a nginx result. 1`] = ` ], "severity": "MEDIUM", }, +] +`; + +exports[`Parsing the docs.securecodebox.io results. 1`] = ` +[ { "attributes": { - "hostname": "nginx.demo-targets.svc", - "port": "80", - "zap_confidence": "3", - "zap_count": "4", + "hostname": "docs.securecodebox.io", + "port": "443", + "zap_confidence": "1", + "zap_count": "490", "zap_cweid": "200", "zap_finding_urls": [ { - "evidence": "nginx/1.19.3", + "evidence": "14356247", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/zap/", + }, + { + "evidence": "17896441", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/getting-started/uninstallation", + }, + { + "evidence": "24710355", + "method": "GET", + "uri": "https://docs.securecodebox.io/4465cfb6.2dca36b4.js", + }, + { + "evidence": "2147483647", + "method": "GET", + "uri": "https://docs.securecodebox.io/3.f6078885.js", + }, + { + "evidence": "24709778", + "method": "GET", + "uri": "https://docs.securecodebox.io/696e17eb.6646ccf1.js", + }, + { + "evidence": "24711273", + "method": "GET", + "uri": "https://docs.securecodebox.io/26fdb175.030b75d8.js", + }, + { + "evidence": "17700762", + "method": "GET", + "uri": "https://docs.securecodebox.io/img/integrationIcons/DefectDojo.svg", + }, + { + "evidence": "24692760", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/api/crds/cascading-rule/", + }, + { + "evidence": "14356247", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/getting-started/first-scans/", + }, + { + "evidence": "24721247", + "method": "GET", + "uri": "https://docs.securecodebox.io/cd9a430b.0a5f1ff9.js", + }, + { + "evidence": "17896441", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/gitleaks/", + }, + { + "evidence": "14356247", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/how-tos/automatically-repeating-scans", + }, + { + "evidence": "14356247", "method": "GET", - "uri": "http://nginx.demo-targets.svc/", + "uri": "https://docs.securecodebox.io/docs/hooks/cascading-scans", }, { - "evidence": "nginx/1.19.3", + "evidence": "14356247", "method": "GET", - "uri": "http://nginx.demo-targets.svc/robots.txt", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan-type/", }, { - "evidence": "nginx/1.19.3", + "evidence": "14356247", "method": "GET", - "uri": "http://nginx.demo-targets.svc", + "uri": "https://docs.securecodebox.io/docs/scanners/wpscan", }, { - "evidence": "nginx/1.19.3", + "evidence": "17896441", "method": "GET", - "uri": "http://nginx.demo-targets.svc/sitemap.xml", + "uri": "https://docs.securecodebox.io/docs/contributing/integrating-a-hook", + }, + { + "evidence": "14356247", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/hooks/slack-webhook", + }, + { + "evidence": "14356247", + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan-type", }, ], - "zap_otherinfo": null, - "zap_pluginid": "10036", - "zap_reference": "http://httpd.apache.org/docs/current/mod/core.html#servertokenshttp://msdn.microsoft.com/en-us/library/ff648552.aspx#ht_urlscan_007http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspxhttp://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html", - "zap_riskcode": "1", - "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.", + "zap_otherinfo": "14356247, which evaluates to: 1970-06-16 03:50:47", + "zap_pluginid": "10096", + "zap_reference": "http://projects.webappsec.org/w/page/13246936/Information%20Leakage", + "zap_riskcode": "0", + "zap_solution": "Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.", "zap_wascid": "13", }, - "category": "Server Leaks Version Information via "Server" HTTP Response Header Field", - "description": "The web/application server is leaking version information via the "Server" HTTP response header. Access to such information may facilitate attackers identifying other vulnerabilities your web/application server is subject to.", + "category": "Timestamp Disclosure - Unix", + "description": "A timestamp was disclosed by the application/web server - Unix", "hint": null, - "location": "http://nginx.demo-targets.svc", - "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.", - "name": "Server Leaks Version Information via "Server" HTTP Response Header Field", + "location": "https://docs.securecodebox.io", + "mitigation": "Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.", + "name": "Timestamp Disclosure - Unix", "osi_layer": "APPLICATION", "references": [ { "type": "URL", - "value": "http://httpd.apache.org/docs/current/mod/core.html#servertokens", - }, - { - "type": "URL", - "value": "http://msdn.microsoft.com/en-us/library/ff648552.aspx#ht_urlscan_007", - }, - { - "type": "URL", - "value": "http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspx", - }, - { - "type": "URL", - "value": "http://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html", + "value": "http://projects.webappsec.org/w/page/13246936/Information%20Leakage", }, { "type": "CWE", @@ -2043,25 +1707,115 @@ exports[`Parsing a nginx result. 1`] = ` "value": "https://cwe.mitre.org/data/definitions/200.html", }, ], - "severity": "LOW", + "severity": "INFORMATIONAL", }, { "attributes": { - "hostname": "nginx.demo-targets.svc", - "port": "80", + "hostname": "docs.securecodebox.io", + "port": "443", "zap_confidence": "2", - "zap_count": "2", + "zap_count": "170", "zap_cweid": "16", "zap_finding_urls": [ { "method": "GET", "param": "X-Content-Type-Options", - "uri": "http://nginx.demo-targets.svc", + "uri": "https://docs.securecodebox.io/docs/contributing/integrating-a-hook/", }, { "method": "GET", "param": "X-Content-Type-Options", - "uri": "http://nginx.demo-targets.svc/", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan-completion-hook/", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/styles.c9559d75.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/01805dbd.a35506a4.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/docs/scanners/", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/6ac6c269.eb766bcf.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/blog/tags/release/", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/a41edef1.361c2485.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/docs/scanners/kube-hunter/", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/img/integrationIcons/Cascading%20Scans.svg", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/docs/getting-started/first-scans/", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/b4010e28.2d695275.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/runtime~main.0510559a.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/fc4fa29a.f8b0651d.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/2.f9d04a90.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/54f44165.3b7dc2c3.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/98701709.a7141487.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/696e17eb.6646ccf1.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/17896441.dfdf4284.js", + }, + { + "method": "GET", + "param": "X-Content-Type-Options", + "uri": "https://docs.securecodebox.io/blog/2020/09/08/blinmaker/", }, ], "zap_otherinfo": "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.At "High" threshold this scan rule will not alert on client or server error responses.", @@ -2074,7 +1828,7 @@ exports[`Parsing a nginx result. 1`] = ` "category": "X-Content-Type-Options Header Missing", "description": "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.", "hint": null, - "location": "http://nginx.demo-targets.svc", + "location": "https://docs.securecodebox.io", "mitigation": "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.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.", "name": "X-Content-Type-Options Header Missing", "osi_layer": "APPLICATION", @@ -2100,27 +1854,91 @@ exports[`Parsing a nginx result. 1`] = ` }, { "attributes": { - "hostname": "nginx.demo-targets.svc", - "port": "80", + "hostname": "docs.securecodebox.io", + "port": "443", "zap_confidence": "2", - "zap_count": "4", + "zap_count": "63", "zap_cweid": "16", "zap_finding_urls": [ { "method": "GET", - "uri": "http://nginx.demo-targets.svc/robots.txt", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan/", }, { "method": "GET", - "uri": "http://nginx.demo-targets.svc/", + "uri": "https://docs.securecodebox.io/docs/hooks/generic-webhook/", }, { "method": "GET", - "uri": "http://nginx.demo-targets.svc/sitemap.xml", + "uri": "https://docs.securecodebox.io/docs/scanners/ncrack/", }, { "method": "GET", - "uri": "http://nginx.demo-targets.svc", + "uri": "https://docs.securecodebox.io/docs/api/finding/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/blog/tags/v-1/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/nmap/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan-type/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/kube-hunter/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/zap/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/how-tos/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/contributing/conventions/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan-completion-hook/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/api/crds/docs/contributing/integrating-a-scanner", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/contributing/operator/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/wpscan/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/getting-started/first-scans/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/docs/scanners/trivy/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/blog/tags/", + }, + { + "method": "GET", + "uri": "https://docs.securecodebox.io/", }, ], "zap_otherinfo": null, @@ -2133,7 +1951,7 @@ exports[`Parsing a nginx result. 1`] = ` "category": "Content Security Policy (CSP) Header Not Set", "description": "Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.", "hint": null, - "location": "http://nginx.demo-targets.svc", + "location": "https://docs.securecodebox.io", "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", "name": "Content Security Policy (CSP) Header Not Set", "osi_layer": "APPLICATION", @@ -2177,136 +1995,141 @@ exports[`Parsing a nginx result. 1`] = ` ], "severity": "LOW", }, -] -`; - -exports[`Parsing the docs.securecodebox.io results. 1`] = ` -[ { "attributes": { "hostname": "docs.securecodebox.io", "port": "443", - "zap_confidence": "1", - "zap_count": "490", - "zap_cweid": "200", + "zap_confidence": "2", + "zap_count": "235", + "zap_cweid": null, "zap_finding_urls": [ { - "evidence": "14356247", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/zap/", + "uri": "https://docs.securecodebox.io/docs/scanners/ncrack", }, { - "evidence": "17896441", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/getting-started/uninstallation", + "uri": "https://docs.securecodebox.io/0e7bd4ca.21f2ccd7.js", }, { - "evidence": "24710355", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/4465cfb6.2dca36b4.js", + "uri": "https://docs.securecodebox.io/assets/images/2020-10-12-Fingerpost-a006af5f911eecef723e462db8d2a89a.jpg", }, { - "evidence": "2147483647", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/3.f6078885.js", + "uri": "https://docs.securecodebox.io/a73ad625.daca9aec.js", }, { - "evidence": "24709778", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/696e17eb.6646ccf1.js", + "uri": "https://docs.securecodebox.io/docs/api/crds/parse-definition", }, { - "evidence": "24711273", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/26fdb175.030b75d8.js", + "uri": "https://docs.securecodebox.io/docs/scanners/ssh", }, { - "evidence": "17700762", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/img/integrationIcons/DefectDojo.svg", + "uri": "https://docs.securecodebox.io/docs/api/finding", }, { - "evidence": "24692760", + "evidence": "Age: 4301", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/crds/cascading-rule/", + "uri": "https://docs.securecodebox.io/b2b675dd.a26036da.js", }, { - "evidence": "14356247", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/getting-started/first-scans/", + "uri": "https://docs.securecodebox.io/26fdb175.030b75d8.js", }, { - "evidence": "24721247", + "evidence": "Age: 2", "method": "GET", - "uri": "https://docs.securecodebox.io/cd9a430b.0a5f1ff9.js", + "uri": "https://docs.securecodebox.io/img/features/code.svg", }, { - "evidence": "17896441", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/gitleaks/", + "uri": "https://docs.securecodebox.io/1e6c7aa9.edd847c5.js", }, { - "evidence": "14356247", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/how-tos/automatically-repeating-scans", + "uri": "https://docs.securecodebox.io/docs/how-tos/scanning-networks", }, { - "evidence": "14356247", + "evidence": "Age: 1", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/hooks/cascading-scans", + "uri": "https://docs.securecodebox.io/6eda5a75.150d84a1.js", }, { - "evidence": "14356247", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/crds/scan-type/", + "uri": "https://docs.securecodebox.io/fbbb2bf9.2bd5d8a5.js", }, { - "evidence": "14356247", + "evidence": "Age: 3", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/wpscan", + "uri": "https://docs.securecodebox.io/", }, { - "evidence": "17896441", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/contributing/integrating-a-hook", + "uri": "https://docs.securecodebox.io/6875c492.64f73903.js", }, { - "evidence": "14356247", + "evidence": "Age: 0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/hooks/slack-webhook", + "uri": "https://docs.securecodebox.io/docs/api/crds/cascading-rule/", }, { - "evidence": "14356247", + "evidence": "Age: 2", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/crds/scan-type", + "uri": "https://docs.securecodebox.io/93523fe8.14f093cb.js", + }, + { + "evidence": "Age: 0", + "method": "GET", + "uri": "https://docs.securecodebox.io/30ea1053.cba2edd8.js", + }, + { + "evidence": "Age: 1", + "method": "GET", + "uri": "https://docs.securecodebox.io/blog/2020/10/12/whats-going-on", }, ], - "zap_otherinfo": "14356247, which evaluates to: 1970-06-16 03:50:47", - "zap_pluginid": "10096", - "zap_reference": "http://projects.webappsec.org/w/page/13246936/Information%20Leakage", + "zap_otherinfo": "The presence of the 'Age' header indicates that that a HTTP/1.1 compliant caching server is in use.", + "zap_pluginid": "10050", + "zap_reference": "https://tools.ietf.org/html/rfc7234https://tools.ietf.org/html/rfc7231http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html (obsoleted by rfc7234)", "zap_riskcode": "0", - "zap_solution": "Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.", - "zap_wascid": "13", + "zap_solution": "Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:Cache-Control: no-cache, no-store, must-revalidate, privatePragma: no-cacheExpires: 0This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.", + "zap_wascid": null, }, - "category": "Timestamp Disclosure - Unix", - "description": "A timestamp was disclosed by the application/web server - Unix", + "category": "Retrieved from Cache", + "description": "The content was retrieved from a shared cache. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where caching servers such as "proxy" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance. ", "hint": null, "location": "https://docs.securecodebox.io", - "mitigation": "Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.", - "name": "Timestamp Disclosure - Unix", + "mitigation": "Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:Cache-Control: no-cache, no-store, must-revalidate, privatePragma: no-cacheExpires: 0This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.", + "name": "Retrieved from Cache", "osi_layer": "APPLICATION", "references": [ { "type": "URL", - "value": "http://projects.webappsec.org/w/page/13246936/Information%20Leakage", + "value": "https://tools.ietf.org/html/rfc7234", }, { - "type": "CWE", - "value": "CWE-200", + "type": "URL", + "value": "https://tools.ietf.org/html/rfc7231", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/200.html", + "value": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html (obsoleted by rfc7234)", }, ], "severity": "INFORMATIONAL", @@ -2316,140 +2139,156 @@ exports[`Parsing the docs.securecodebox.io results. 1`] = ` "hostname": "docs.securecodebox.io", "port": "443", "zap_confidence": "2", - "zap_count": "170", - "zap_cweid": "16", + "zap_count": "90", + "zap_cweid": "525", "zap_finding_urls": [ { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/docs/contributing/integrating-a-hook/", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/img/integrationIcons/Trivy.svg", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/docs/api/crds/scan-completion-hook/", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/sitemap.xml", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/styles.c9559d75.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/contributing/integrating-a-hook/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/01805dbd.a35506a4.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan-completion-hook/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", + "param": "Cache-Control", "uri": "https://docs.securecodebox.io/docs/scanners/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/6ac6c269.eb766bcf.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/blog/tags/release/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/blog/tags/release/", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/how-tos/automatically-repeating-scans/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/a41edef1.361c2485.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/scanners/kube-hunter/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/docs/scanners/kube-hunter/", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/blog/atom.xml", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/img/integrationIcons/Cascading%20Scans.svg", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/hooks/elasticsearch/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/docs/getting-started/first-scans/", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/img/integrationIcons/Slack%20WebHook.svg", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/b4010e28.2d695275.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/api/crds/scheduled-scan/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/runtime~main.0510559a.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/img/integrationIcons/ZAP.svg", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/fc4fa29a.f8b0651d.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/hooks/generic-webhook/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/2.f9d04a90.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/img/features/close.svg", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/54f44165.3b7dc2c3.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/scanners/zap/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/98701709.a7141487.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/img/features/code.svg", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/696e17eb.6646ccf1.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/api/crds/scan-type/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/17896441.dfdf4284.js", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/docs/scanners/ncrack/", }, { + "evidence": "public, max-age=0, must-revalidate", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "https://docs.securecodebox.io/blog/2020/09/08/blinmaker/", + "param": "Cache-Control", + "uri": "https://docs.securecodebox.io/img/integrationIcons/Cascading%20Scans.svg", }, ], - "zap_otherinfo": "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.At "High" threshold this scan rule will not alert on client or server error responses.", - "zap_pluginid": "10021", - "zap_reference": "http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspxhttps://owasp.org/www-community/Security_Headers", + "zap_otherinfo": null, + "zap_pluginid": "10015", + "zap_reference": "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#web-content-caching", "zap_riskcode": "1", - "zap_solution": "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.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.", - "zap_wascid": "15", + "zap_solution": "Whenever possible ensure the cache-control HTTP header is set with no-cache, no-store, must-revalidate; and that the pragma HTTP header is set with no-cache.", + "zap_wascid": "13", }, - "category": "X-Content-Type-Options Header Missing", - "description": "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.", + "category": "Incomplete or No Cache-control and Pragma HTTP Header Set", + "description": "The cache-control and pragma HTTP header have not been set properly or are missing allowing the browser and proxies to cache content.", "hint": null, "location": "https://docs.securecodebox.io", - "mitigation": "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.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.", - "name": "X-Content-Type-Options Header Missing", + "mitigation": "Whenever possible ensure the cache-control HTTP header is set with no-cache, no-store, must-revalidate; and that the pragma HTTP header is set with no-cache.", + "name": "Incomplete or No Cache-control and Pragma HTTP Header Set", "osi_layer": "APPLICATION", "references": [ { "type": "URL", - "value": "http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx", - }, - { - "type": "URL", - "value": "https://owasp.org/www-community/Security_Headers", + "value": "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#web-content-caching", }, { "type": "CWE", - "value": "CWE-16", + "value": "CWE-525", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/16.html", + "value": "https://cwe.mitre.org/data/definitions/525.html", }, ], "severity": "LOW", @@ -2459,140 +2298,131 @@ exports[`Parsing the docs.securecodebox.io results. 1`] = ` "hostname": "docs.securecodebox.io", "port": "443", "zap_confidence": "2", - "zap_count": "63", - "zap_cweid": "16", + "zap_count": "19", + "zap_cweid": "200", "zap_finding_urls": [ { + "evidence": "192.168.178.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/crds/scan/", + "uri": "https://docs.securecodebox.io/docs/scanners/nmap/", }, { + "evidence": "192.168.0.1", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/hooks/generic-webhook/", + "uri": "https://docs.securecodebox.io/98701709.a7141487.js", }, { + "evidence": "192.168.0.1", "method": "GET", "uri": "https://docs.securecodebox.io/docs/scanners/ncrack/", }, { + "evidence": "192.168.200.100", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/finding/", - }, - { - "method": "GET", - "uri": "https://docs.securecodebox.io/blog/tags/v-1/", + "uri": "https://docs.securecodebox.io/123d7b49.c7ac3740.js", }, { + "evidence": "10.102.131.102:22", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/nmap/", + "uri": "https://docs.securecodebox.io/b650ae8f.1ac2f5e8.js", }, { + "evidence": "192.168.0.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/crds/scan-type/", + "uri": "https://docs.securecodebox.io/docs/scanners/kube-hunter/", }, { + "evidence": "192.168.0.1", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/kube-hunter/", + "uri": "https://docs.securecodebox.io/b92f2143.b5302d92.js", }, { + "evidence": "192.168.0.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/zap/", + "uri": "https://docs.securecodebox.io/docs/scanners/kube-hunter", }, { + "evidence": "192.168.0.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/", + "uri": "https://docs.securecodebox.io/edd86307.afcc49d0.js", }, { + "evidence": "192.168.178.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/how-tos/", + "uri": "https://docs.securecodebox.io/docs/scanners/nmap", }, { + "evidence": "ip-10-0-56-78", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/contributing/conventions/", + "uri": "https://docs.securecodebox.io/1e6c7aa9.edd847c5.js", }, { + "evidence": "192.168.0.1", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/crds/scan-completion-hook/", + "uri": "https://docs.securecodebox.io/docs/scanners/nikto/", }, { + "evidence": "192.168.178.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/api/crds/docs/contributing/integrating-a-scanner", + "uri": "https://docs.securecodebox.io/docs/how-tos/scanning-networks", }, { + "evidence": "192.168.178.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/contributing/operator/", + "uri": "https://docs.securecodebox.io/a3ff696f.8750fdc6.js", }, { + "evidence": "192.168.178.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/wpscan/", + "uri": "https://docs.securecodebox.io/docs/how-tos/scanning-networks/", }, { + "evidence": "192.168.178.0", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/getting-started/first-scans/", + "uri": "https://docs.securecodebox.io/docs/scanners/Nmap", }, { + "evidence": "192.168.0.1", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/trivy/", + "uri": "https://docs.securecodebox.io/docs/scanners/nikto", }, { + "evidence": "192.168.1.1", "method": "GET", - "uri": "https://docs.securecodebox.io/blog/tags/", + "uri": "https://docs.securecodebox.io/71aa2dad.6919055f.js", }, { + "evidence": "192.168.0.1", "method": "GET", - "uri": "https://docs.securecodebox.io/", + "uri": "https://docs.securecodebox.io/docs/scanners/ncrack", }, ], - "zap_otherinfo": null, - "zap_pluginid": "10038", - "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policyhttps://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.htmlhttp://www.w3.org/TR/CSP/http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.htmlhttp://www.html5rocks.com/en/tutorials/security/content-security-policy/http://caniuse.com/#feat=contentsecuritypolicyhttp://content-security-policy.com/", + "zap_otherinfo": "192.168.178.0", + "zap_pluginid": "2", + "zap_reference": "https://tools.ietf.org/html/rfc1918", "zap_riskcode": "1", - "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", - "zap_wascid": "15", + "zap_solution": "Remove the private IP address from the HTTP response body. For comments, use JSP/ASP/PHP comment instead of HTML/JavaScript comment which can be seen by client browsers.", + "zap_wascid": "13", }, - "category": "Content Security Policy (CSP) Header Not Set", - "description": "Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.", + "category": "Private IP Disclosure", + "description": "A private IP (such as 10.x.x.x, 172.x.x.x, 192.168.x.x) or an Amazon EC2 private hostname (for example, ip-10-0-56-78) has been found in the HTTP response body. This information might be helpful for further attacks targeting internal systems.", "hint": null, "location": "https://docs.securecodebox.io", - "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", - "name": "Content Security Policy (CSP) Header Not Set", + "mitigation": "Remove the private IP address from the HTTP response body. For comments, use JSP/ASP/PHP comment instead of HTML/JavaScript comment which can be seen by client browsers.", + "name": "Private IP Disclosure", "osi_layer": "APPLICATION", "references": [ { "type": "URL", - "value": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy", - }, - { - "type": "URL", - "value": "https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html", - }, - { - "type": "URL", - "value": "http://www.w3.org/TR/CSP/", - }, - { - "type": "URL", - "value": "http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html", - }, - { - "type": "URL", - "value": "http://www.html5rocks.com/en/tutorials/security/content-security-policy/", - }, - { - "type": "URL", - "value": "http://caniuse.com/#feat=contentsecuritypolicy", - }, - { - "type": "URL", - "value": "http://content-security-policy.com/", + "value": "https://tools.ietf.org/html/rfc1918", }, { "type": "CWE", - "value": "CWE-16", + "value": "CWE-200", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/16.html", + "value": "https://cwe.mitre.org/data/definitions/200.html", }, ], "severity": "LOW", @@ -2602,136 +2432,128 @@ exports[`Parsing the docs.securecodebox.io results. 1`] = ` "hostname": "docs.securecodebox.io", "port": "443", "zap_confidence": "2", - "zap_count": "235", + "zap_count": "83", "zap_cweid": null, "zap_finding_urls": [ { - "evidence": "Age: 0", + "evidence": "", "method": "GET", - "uri": "https://docs.securecodebox.io/docs/scanners/ncrack", + "uri": "https://docs.securecodebox.io/docs/api/crds/scheduled-scan", }, { - "evidence": "Age: 0", + "evidence": "", - "method": "GET", - "uri": "http://juice-shop:3000", - }, - { - "evidence": "", - "method": "GET", - "uri": "http://juice-shop:3000/sitemap.xml", - }, - { - "evidence": "",'", - "method": "GET", - "uri": "http://juice-shop:3000/tutorial-es2018.js", - }, - { - "evidence": "", - "method": "GET", - "uri": "http://juice-shop:3000/", - }, - { - "evidence": "", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/polyfills-es5.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.DS_Store", }, { - "evidence": "ftp", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.env", }, - ], - "zap_otherinfo": "No links have been found while there are scripts, which is an indication that this is a modern web application.", - "zap_pluginid": "10109", - "zap_reference": null, - "zap_riskcode": "0", - "zap_solution": "This is an informational alert and so no changes are required.", - "zap_wascid": null, - }, - "category": "Modern Web Application", - "description": "The application appears to be a modern web application. If you need to explore it automatically then the Ajax Spider may well be more effective than the standard one.", - "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "This is an informational alert and so no changes are required.", - "name": "Modern Web Application", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "", - }, - ], - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "hostname": "juice-shop", - "port": "3000", - "zap_confidence": "1", - "zap_count": "35", - "zap_cweid": "565", - "zap_finding_urls": [ { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJiBX&sid=i44E23_d7HysXmYyAAAF", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.git/config", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJf4l", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.htaccess", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJmAk", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.idea/WebServers.xml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJv2N&sid=PktdCTeisMU99B0XAAAJ", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.php_cs.cache", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJkNZ", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.ssh/id_dsa", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKC1F", - }, - { - "method": "POST", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.ssh/id_rsa", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJq6f", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/.svn/entries", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJc38&sid=RwTg5sM3urRvTowDAAAC", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/8732990967634790318", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKAAX", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/adminer.php", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJeSU", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJec3&sid=N2BAvk-LoI6ydM_fAAAD", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/", }, { - "method": "POST", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", + "attack": "", + "evidence": "HTTP/1.1 404", + "method": "GET", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/.env", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK4Is", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/.htaccess", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJY_O", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/8756109290027926951", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwTQ&sid=m1nJpf-U7x4l9EdgAAAK", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJfF2&sid=QfhYpBR7a8XY6KopAAAE", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJZAS&sid=xm0oUZMe5lefHrYkAAAB", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/8co5j/bl2sm", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7mu&sid=0b5CIcRfebjeUP6IAAAN", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml?name=abc", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwR_", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/trace.axd", }, - ], - "zap_otherinfo": "The origin domain used for comparison was: juice-shopio=i44E23_d7HysXmYyAAAF", - "zap_pluginid": "90033", - "zap_reference": "https://tools.ietf.org/html/rfc6265#section-4.1https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes.htmlhttp://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_cookies", - "zap_riskcode": "0", - "zap_solution": "Always scope cookies to a FQDN (Fully Qualified Domain Name).", - "zap_wascid": "15", - }, - "category": "Loosely Scoped Cookie", - "description": "Cookies can be scoped by domain or path. This check is only concerned with domain scope.The domain scope applied to a cookie determines which domains can access it. For example, a cookie can be scoped strictly to a subdomain e.g. www.nottrusted.com, or loosely scoped to a parent domain e.g. nottrusted.com. In the latter case, any subdomain of nottrusted.com can access the cookie. Loosely scoped cookies are common in mega-applications like google.com and live.com. Cookies set from a subdomain like app.foo.bar are transmitted only to that domain by the browser. However, cookies scoped to a parent-level domain may be transmitted to the parent, or any subdomain of the parent.", - "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "Always scope cookies to a FQDN (Fully Qualified Domain Name).", - "name": "Loosely Scoped Cookie", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "https://tools.ietf.org/html/rfc6265#section-4.1", - }, - { - "type": "URL", - "value": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes.html", - }, - { - "type": "URL", - "value": "http://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_cookies", - }, - { - "type": "CWE", - "value": "CWE-565", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/565.html", - }, - ], - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "hostname": "juice-shop", - "port": "3000", - "zap_confidence": "2", - "zap_count": "35", - "zap_cweid": "16", - "zap_finding_urls": [ { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJzM-", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api?name=abc", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYKz&sid=r2xfyQoKfs1Qc7gKAAAA", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/app/etc/local.xml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJc38&sid=RwTg5sM3urRvTowDAAAC", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/CHANGELOG.txt", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7mu&sid=0b5CIcRfebjeUP6IAAAN", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/clientaccesspolicy.xml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJwR_", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/composer.json", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJv0-", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/composer.lock", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKABn&sid=OP1vxyAS7ESoZCFeAAAO", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/config/database.yml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJmAk", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/config/databases.yml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJkNZ", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/core", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJeSU", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/crossdomain.xml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaU&sid=r2xfyQoKfs1Qc7gKAAAA", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/CVS/root", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJY_O", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/DEADJOE", }, { - "method": "POST", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", + "attack": "", + "evidence": "HTTP/1.1 404", + "method": "GET", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/elmah.axd", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJfF2&sid=QfhYpBR7a8XY6KopAAAE", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/filezilla.xml", }, { + "attack": "", + "evidence": "HTTP/1.1 401", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJq6f", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/host-manager/html", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJZAS&sid=xm0oUZMe5lefHrYkAAAB", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/id_dsa", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJh_q", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/id_rsa", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK7eA", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/key.pem", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFKC1F", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/lfm.php", }, { + "attack": "", + "evidence": "HTTP/1.1 401", "method": "GET", - "param": "X-Content-Type-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFK4Is", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/manager/html", }, - ], - "zap_otherinfo": "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.At "High" threshold this scan rule will not alert on client or server error responses.", - "zap_pluginid": "10021", - "zap_reference": "http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspxhttps://owasp.org/www-community/Security_Headers", - "zap_riskcode": "1", - "zap_solution": "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.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.", - "zap_wascid": "15", - }, - "category": "X-Content-Type-Options Header Missing", - "description": "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.", - "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "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.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.", - "name": "X-Content-Type-Options Header Missing", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx", - }, - { - "type": "URL", - "value": "https://owasp.org/www-community/Security_Headers", - }, - { - "type": "CWE", - "value": "CWE-16", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/16.html", - }, - ], - "severity": "LOW", - }, - { - "attributes": { - "hostname": "juice-shop", - "port": "3000", - "zap_confidence": "1", - "zap_count": "7", - "zap_cweid": "200", - "zap_finding_urls": [ { + "attack": "", + "evidence": "HTTP/1.1 401", "method": "GET", - "uri": "http://juice-shop:3000/tutorial-es2018.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/manager/status", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/main-es5.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/myserver.key", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/vendor-es2018.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/privatekey.key", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/main-es2018.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/polyfills-es2018.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/vendor-es5.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/8co5j/bl2sm", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/polyfills-es5.js", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt?name=abc", }, - ], - "zap_otherinfo": "The following comment/snippet was identified via the pattern: \\bQUERY\\b(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{s2oO:function(e,t,o){"use strict";o.r(t),o.d(t,"hasInstructions",(function(){return q})),o.d(t,"startHackingInstructorFor",(function(){return M}));var a={"":["",""],_:["",""],"\\n":[""]," ":[""],"-":[""]};function r(e){return e.replace(RegExp("^"+(e.match(/^(\\t| )+/)||"")[0],"gm"),"")}function n(e){return(e+"").replace(/"/g,""").replace(//g,">")}function i(e){return new Promise(t=>{setTimeout(t,e)})}function s(e,t,o={ignoreCase:!0}){return async()=>{const a=document.querySelector(e);for(;a.value!==t&&(!o.ignoreCase||a.value.toLowerCase()!==t.toLowerCase());)await i(100)}}function l(e,t,o={ignoreCase:!0}){return async()=>{const a=document.querySelector(e);for(;a.value===t&&(!o.ignoreCase||a.value.toLowerCase()!==t.toLowerCase());)await i(100)}}function u(e){return async()=>{const t=document.querySelector(e);for(;!t.value||""===t.value;)await i(100)}}function p(e){return async()=>{const t=document.querySelector(e);t||console.warn(\`Could not find Element with selector "\${e}"\`),await new Promise(e=>{t.addEventListener("click",()=>e())})}}function d(e,t){return async()=>{for(;;){const o=document.querySelector(e);if(o&&o.innerHTML===t)break;await i(100)}}}function c(e){return()=>i(e)}function h(e){return async()=>{for(;window.location.hash!=="#/"+e;)await i(100)}}function f(){return async()=>{for(;null===localStorage.getItem("token");)await i(100)}}function m(){return async()=>{for(;null!==localStorage.getItem("token");)await i(100)}}function g(){let e=!1;const t=new Image;return Object.defineProperty(t,"id",{get:function(){e=!0}}),async()=>{for(;console.dir(t),!e;)await i(100)}}const b={name:"Login Admin",hints:[{text:"To start this challenge, you'll have to log out first.",fixture:"#navbarAccount",unskippable:!0,resolved:m()},{text:"Let's try if we find a way to log in with the administrator's user account. To begin, go to the _Login_ page via the _Account_ menu.",fixture:"app-navbar"...", - "zap_pluginid": "10027", - "zap_reference": null, - "zap_riskcode": "0", - "zap_solution": "Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.", - "zap_wascid": "13", - }, - "category": "Information Disclosure - Suspicious Comments", - "description": "The response appears to contain suspicious comments which may help an attacker. Note: Matches made within script blocks or files are against the entire content not only comments.", - "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.", - "name": "Information Disclosure - Suspicious Comments", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "", - }, - { - "type": "CWE", - "value": "CWE-200", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/200.html", - }, - ], - "severity": "INFORMATIONAL", - }, - { - "attributes": { - "hostname": "juice-shop", - "port": "3000", - "zap_confidence": "2", - "zap_count": "13", - "zap_cweid": "16", - "zap_finding_urls": [ { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/coupons_2013.md.bak", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/server-info", }, { - "method": "POST", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", + "attack": "", + "evidence": "HTTP/1.1 404", + "method": "GET", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/server-status", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/server.key", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sftp-config.json", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemanager.xml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/sitemap.xml", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/package.json.bak", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/suspicious_errors.yml", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/8co5j/bl2sm", }, { - "method": "POST", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", + "attack": "", + "evidence": "HTTP/1.1 404", + "method": "GET", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml?name=abc", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/eastere.gg", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sites/default/files/.ht.sqlite", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/quarantine", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sites/default/private/files/backup_migrate/scheduled/test.txt", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/trace.axd", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "uri": "http://juice-shop:3000/ftp/encrypt.pyc", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/vim_settings.xml", }, - ], - "zap_otherinfo": null, - "zap_pluginid": "10038", - "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policyhttps://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.htmlhttp://www.w3.org/TR/CSP/http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.htmlhttp://www.html5rocks.com/en/tutorials/security/content-security-policy/http://caniuse.com/#feat=contentsecuritypolicyhttp://content-security-policy.com/", - "zap_riskcode": "1", - "zap_solution": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", - "zap_wascid": "15", - }, - "category": "Content Security Policy (CSP) Header Not Set", - "description": "Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.", - "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: "Content-Security-Policy" for Chrome 25+, Firefox 23+ and Safari 7+, "X-Content-Security-Policy" for Firefox 4.0+ and Internet Explorer 10+, and "X-WebKit-CSP" for Chrome 14+ and Safari 6+.", - "name": "Content Security Policy (CSP) Header Not Set", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy", - }, - { - "type": "URL", - "value": "https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html", - }, - { - "type": "URL", - "value": "http://www.w3.org/TR/CSP/", - }, - { - "type": "URL", - "value": "http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html", - }, - { - "type": "URL", - "value": "http://www.html5rocks.com/en/tutorials/security/content-security-policy/", - }, - { - "type": "URL", - "value": "http://caniuse.com/#feat=contentsecuritypolicy", - }, - { - "type": "URL", - "value": "http://content-security-policy.com/", - }, - { - "type": "CWE", - "value": "CWE-16", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/16.html", - }, - ], - "severity": "LOW", - }, - { - "attributes": { - "hostname": "juice-shop", - "port": "3000", - "zap_confidence": "2", - "zap_count": "6", - "zap_cweid": "829", - "zap_finding_urls": [ { - "evidence": "", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js", - "uri": "http://juice-shop:3000", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/applicationContext.xml", }, { - "evidence": "", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js", - "uri": "http://juice-shop:3000/sitemap.xml", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/classes/8/0/37.class", }, { - "evidence": "", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js", - "uri": "http://juice-shop:3000/", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/classes/A/name.class", }, { - "evidence": "", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js", - "uri": "http://juice-shop:3000/", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/WEB-INF/web.xml", }, { - "evidence": "", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js", - "uri": "http://juice-shop:3000/sitemap.xml", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/winscp.ini", }, { - "evidence": "", + "attack": "", + "evidence": "HTTP/1.1 404", "method": "GET", - "param": "//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js", - "uri": "http://juice-shop:3000", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/WS_FTP.ini", + }, + { + "attack": "", + "evidence": "HTTP/1.1 405", + "method": "OPTIONS", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080", }, - ], - "zap_otherinfo": null, - "zap_pluginid": "10017", - "zap_reference": null, - "zap_riskcode": "1", - "zap_solution": "Ensure JavaScript source files are loaded from only trusted sources, and the sources can't be controlled by end users of the application.", - "zap_wascid": "15", - }, - "category": "Cross-Domain JavaScript Source File Inclusion", - "description": "The page includes one or more script files from a third-party domain.", - "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "Ensure JavaScript source files are loaded from only trusted sources, and the sources can't be controlled by end users of the application.", - "name": "Cross-Domain JavaScript Source File Inclusion", - "osi_layer": "APPLICATION", - "references": [ - { - "type": "URL", - "value": "", - }, - { - "type": "CWE", - "value": "CWE-829", - }, - { - "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/829.html", - }, - ], - "severity": "LOW", - }, - { - "attributes": { - "hostname": "juice-shop", - "port": "3000", - "zap_confidence": "2", - "zap_count": "2", - "zap_cweid": "16", - "zap_finding_urls": [ { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "POST", - "param": "X-Frame-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYh4&sid=r2xfyQoKfs1Qc7gKAAAA", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", }, { + "attack": "", + "evidence": "HTTP/1.1 404", "method": "POST", - "param": "X-Frame-Options", - "uri": "http://juice-shop:3000/socket.io/?EIO=3&transport=polling&t=NLFJYaS&sid=r2xfyQoKfs1Qc7gKAAAA", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", + }, + { + "attack": "", + "evidence": "HTTP/1.1 404", + "method": "POST", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", + }, + { + "attack": "", + "evidence": "HTTP/1.1 404", + "method": "POST", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input", + }, + { + "attack": "", + "evidence": "HTTP/1.1 403", + "method": "PUT", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/m3icel4qks", + }, + { + "attack": "", + "evidence": "HTTP/1.1 403", + "method": "PUT", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml/v95p352358", + }, + { + "attack": "", + "evidence": "HTTP/1.1 403", + "method": "PUT", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt/1cpka1vqho", + }, + { + "attack": "", + "evidence": "HTTP/1.1 403", + "method": "PUT", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml/othk2m9rl0", + }, + { + "attack": "", + "evidence": "HTTP/1.1 405", + "method": "TRACE", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080", + }, + { + "attack": "", + "evidence": "HTTP/1.1 405", + "method": "TRACE", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api", + }, + { + "attack": "", + "evidence": "HTTP/1.1 405", + "method": "TRACE", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/api/swagger.yaml", + }, + { + "attack": "", + "evidence": "HTTP/1.1 405", + "method": "TRACE", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/robots.txt", + }, + { + "attack": "", + "evidence": "HTTP/1.1 405", + "method": "TRACE", + "param": "", + "uri": "http://bodgeit.securecodebox-demo.svc:8080/sitemap.xml", }, ], "zap_otherinfo": null, - "zap_pluginid": "10020", - "zap_reference": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - "zap_riskcode": "2", - "zap_solution": "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).", - "zap_wascid": "15", + "zap_pluginid": "100000", + "zap_reference": null, + "zap_riskcode": "0", + "zap_solution": null, + "zap_wascid": "20", }, - "category": "X-Frame-Options Header Not Set", - "description": "X-Frame-Options header is not included in the HTTP response to protect against 'ClickJacking' attacks.", + "category": "A Client Error response code was returned by the server", + "description": "A response code of 404 was returned by the server.This may indicate that the application is failing to handle unexpected input correctly.Raised by the 'Alert on HTTP Response Code Error' script", "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "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).", - "name": "X-Frame-Options Header Not Set", + "location": "http://bodgeit.securecodebox-demo.svc:8080", + "mitigation": null, + "name": "A Client Error response code was returned by the server", "osi_layer": "APPLICATION", "references": [ - { - "type": "URL", - "value": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - }, { "type": "CWE", - "value": "CWE-16", + "value": "CWE-388", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/16.html", + "value": "https://cwe.mitre.org/data/definitions/388.html", }, ], - "severity": "MEDIUM", + "severity": "INFORMATIONAL", }, { "attributes": { - "hostname": "juice-shop", - "port": "3000", - "zap_confidence": "2", - "zap_count": "1", - "zap_cweid": "200", - "zap_finding_urls": [ - { - "evidence": "192.168.99.100:3000", - "method": "GET", - "uri": "http://juice-shop:3000/rest/admin/application-configuration", - }, - ], - "zap_otherinfo": "192.168.99.100:3000", - "zap_pluginid": "2", - "zap_reference": "https://tools.ietf.org/html/rfc1918", - "zap_riskcode": "1", - "zap_solution": "Remove the private IP address from the HTTP response body. For comments, use JSP/ASP/PHP comment instead of HTML/JavaScript comment which can be seen by client browsers.", - "zap_wascid": "13", + "hostname": "bodgeit.securecodebox-demo.svc", + "port": "8080", + "zap_confidence": "0", + "zap_count": "0", + "zap_cweid": "311", + "zap_finding_urls": [], + "zap_otherinfo": "Failed to connect.ZAP attempted to connect via: https://bodgeit.securecodebox-demo.svc:443", + "zap_pluginid": "10106", + "zap_reference": "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.htmlhttps://letsencrypt.org/", + "zap_riskcode": "2", + "zap_solution": "Configure your web or application server to use SSL (https).", + "zap_wascid": "4", }, - "category": "Private IP Disclosure", - "description": "A private IP (such as 10.x.x.x, 172.x.x.x, 192.168.x.x) or an Amazon EC2 private hostname (for example, ip-10-0-56-78) has been found in the HTTP response body. This information might be helpful for further attacks targeting internal systems.", + "category": "HTTP Only Site", + "description": "The site is only served under HTTP and not HTTPS.", "hint": null, - "location": "http://juice-shop:3000", - "mitigation": "Remove the private IP address from the HTTP response body. For comments, use JSP/ASP/PHP comment instead of HTML/JavaScript comment which can be seen by client browsers.", - "name": "Private IP Disclosure", + "location": "http://bodgeit.securecodebox-demo.svc:8080", + "mitigation": "Configure your web or application server to use SSL (https).", + "name": "HTTP Only Site", "osi_layer": "APPLICATION", "references": [ { "type": "URL", - "value": "https://tools.ietf.org/html/rfc1918", + "value": "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", + }, + { + "type": "URL", + "value": "https://letsencrypt.org/", }, { "type": "CWE", - "value": "CWE-200", + "value": "CWE-311", }, { "type": "URL", - "value": "https://cwe.mitre.org/data/definitions/200.html", + "value": "https://cwe.mitre.org/data/definitions/311.html", }, ], - "severity": "LOW", + "severity": "MEDIUM", }, ] `;