diff --git a/package-lock.json b/package-lock.json index e42ecf820..786ac0501 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1880,7 +1880,6 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "optional": true, "requires": { "fill-range": "^7.0.1" } @@ -1890,7 +1889,6 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, - "optional": true, "requires": { "to-regex-range": "^5.0.1" } @@ -1900,7 +1898,6 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, - "optional": true, "requires": { "is-extglob": "^2.1.1" } @@ -1909,15 +1906,13 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "optional": true + "dev": true }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "optional": true, "requires": { "is-number": "^7.0.0" } @@ -3595,6 +3590,15 @@ } } }, + "eslint-plugin-license-header": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-license-header/-/eslint-plugin-license-header-0.2.0.tgz", + "integrity": "sha512-HAyRJa8veCE4LnJM62hxc6FGZCBIXikv2DevDz45i6AvRFlVSsCJZdNTB4CZ/9KSxKkt+EmjImjkmGW85G69tQ==", + "dev": true, + "requires": { + "requireindex": "^1.2.0" + } + }, "eslint-plugin-no-unsanitized": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-3.1.4.tgz", @@ -7241,6 +7245,12 @@ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, + "requireindex": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.2.0.tgz", + "integrity": "sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==", + "dev": true + }, "reserved-words": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/reserved-words/-/reserved-words-0.1.2.tgz", diff --git a/package.json b/package.json index d67c32cd1..17d639c41 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,8 @@ "src/webpack/**" ], "plugins": [ - "no-unsanitized" + "no-unsanitized", + "license-header" ], "rules": { "no-negated-condition": "warn", @@ -82,7 +83,8 @@ "unicorn/prefer-includes": "warn", "unicorn/prefer-string-slice": "warn", "unicorn/filename-case": "warn", - "unicorn/prefer-query-selector": "warn" + "unicorn/prefer-query-selector": "warn", + "license-header/header": [ "error", "./gradle/spotless/license.java" ] } }, "repository": { @@ -103,6 +105,7 @@ "devDependencies": { "ava": "^3.13.0", "css-loader": "^5.0.1", + "eslint-plugin-license-header": "^0.2.0", "eslint-plugin-no-unsanitized": "^3.1.4", "lint-staged": "^10.5.1", "vue-loader": "^15.9.5", diff --git a/src/main/zapHomeFiles/hud/display.js b/src/main/zapHomeFiles/hud/display.js index dab7e9e18..009a5c823 100644 --- a/src/main/zapHomeFiles/hud/display.js +++ b/src/main/zapHomeFiles/hud/display.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // App is the main Vue object controlling everything let app; let tabId = ''; @@ -1125,8 +1145,6 @@ navigator.serviceWorker.addEventListener('message', event => { channel.port1.addEventListener('message', event => { // Open window and inject the HTML report - // FIXME: remove after #620 - // eslint-disable-next-line no-unsanitized/property window.open('').document.body.innerHTML = event.data.response; }); diff --git a/src/main/zapHomeFiles/hud/drawer.js b/src/main/zapHomeFiles/hud/drawer.js index 6780f7b4d..d7ce6be7b 100644 --- a/src/main/zapHomeFiles/hud/drawer.js +++ b/src/main/zapHomeFiles/hud/drawer.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // App is the main Vue object controlling everything let app; const eventBus = new Vue(); diff --git a/src/main/zapHomeFiles/hud/growlerAlerts.js b/src/main/zapHomeFiles/hud/growlerAlerts.js index 4fcb08357..c22a6a254 100644 --- a/src/main/zapHomeFiles/hud/growlerAlerts.js +++ b/src/main/zapHomeFiles/hud/growlerAlerts.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Injected string const ZAP_HUD_FILES = '<>'; diff --git a/src/main/zapHomeFiles/hud/management.js b/src/main/zapHomeFiles/hud/management.js index 90c77153c..5abfbd148 100644 --- a/src/main/zapHomeFiles/hud/management.js +++ b/src/main/zapHomeFiles/hud/management.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Management Frame * diff --git a/src/main/zapHomeFiles/hud/panel.js b/src/main/zapHomeFiles/hud/panel.js index 861f11909..370ac3467 100644 --- a/src/main/zapHomeFiles/hud/panel.js +++ b/src/main/zapHomeFiles/hud/panel.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Panel * diff --git a/src/main/zapHomeFiles/hud/serviceworker.js b/src/main/zapHomeFiles/hud/serviceworker.js index 89ecd0f99..209a264b4 100644 --- a/src/main/zapHomeFiles/hud/serviceworker.js +++ b/src/main/zapHomeFiles/hud/serviceworker.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Injected strings const ZAP_HUD_FILES = '<>'; const toolScripts = [ diff --git a/src/main/zapHomeFiles/hud/target/inject.js b/src/main/zapHomeFiles/hud/target/inject.js index c5ab2fa64..8ba3b3ba4 100644 --- a/src/main/zapHomeFiles/hud/target/inject.js +++ b/src/main/zapHomeFiles/hud/target/inject.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Injection Module * diff --git a/src/main/zapHomeFiles/hud/tools/activeScan.js b/src/main/zapHomeFiles/hud/tools/activeScan.js index 6004f6af0..5113eb0fc 100644 --- a/src/main/zapHomeFiles/hud/tools/activeScan.js +++ b/src/main/zapHomeFiles/hud/tools/activeScan.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Active Scan Tool * diff --git a/src/main/zapHomeFiles/hud/tools/ajaxspider.js b/src/main/zapHomeFiles/hud/tools/ajaxspider.js index 2797cbb70..46bb57ba6 100644 --- a/src/main/zapHomeFiles/hud/tools/ajaxspider.js +++ b/src/main/zapHomeFiles/hud/tools/ajaxspider.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * AjaxSpider Tool * diff --git a/src/main/zapHomeFiles/hud/tools/attack.js b/src/main/zapHomeFiles/hud/tools/attack.js index 7de50d807..0d203c241 100644 --- a/src/main/zapHomeFiles/hud/tools/attack.js +++ b/src/main/zapHomeFiles/hud/tools/attack.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Attack mode Tool * diff --git a/src/main/zapHomeFiles/hud/tools/break.js b/src/main/zapHomeFiles/hud/tools/break.js index 5b0474d4b..791965f9b 100644 --- a/src/main/zapHomeFiles/hud/tools/break.js +++ b/src/main/zapHomeFiles/hud/tools/break.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Break Tool * diff --git a/src/main/zapHomeFiles/hud/tools/commonAlerts.js b/src/main/zapHomeFiles/hud/tools/commonAlerts.js index 19d3aa3a0..56fda968f 100644 --- a/src/main/zapHomeFiles/hud/tools/commonAlerts.js +++ b/src/main/zapHomeFiles/hud/tools/commonAlerts.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Handles all of the alerts for the other alert tools * diff --git a/src/main/zapHomeFiles/hud/tools/history.js b/src/main/zapHomeFiles/hud/tools/history.js index c661d2bad..ce27d2cbc 100644 --- a/src/main/zapHomeFiles/hud/tools/history.js +++ b/src/main/zapHomeFiles/hud/tools/history.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * History Tool * diff --git a/src/main/zapHomeFiles/hud/tools/htmlReport.js b/src/main/zapHomeFiles/hud/tools/htmlReport.js index a2918c80c..daa0536c8 100644 --- a/src/main/zapHomeFiles/hud/tools/htmlReport.js +++ b/src/main/zapHomeFiles/hud/tools/htmlReport.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * HTML Report tool * diff --git a/src/main/zapHomeFiles/hud/tools/hudErrors.js b/src/main/zapHomeFiles/hud/tools/hudErrors.js index d9d23e7a6..424b82827 100644 --- a/src/main/zapHomeFiles/hud/tools/hudErrors.js +++ b/src/main/zapHomeFiles/hud/tools/hudErrors.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Show HUD Errors * diff --git a/src/main/zapHomeFiles/hud/tools/pageAlertsHigh.js b/src/main/zapHomeFiles/hud/tools/pageAlertsHigh.js index a9f3fdcb2..89db51b6d 100644 --- a/src/main/zapHomeFiles/hud/tools/pageAlertsHigh.js +++ b/src/main/zapHomeFiles/hud/tools/pageAlertsHigh.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * High Risk Page Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/pageAlertsInformational.js b/src/main/zapHomeFiles/hud/tools/pageAlertsInformational.js index 2bffe672d..01ca1a40c 100644 --- a/src/main/zapHomeFiles/hud/tools/pageAlertsInformational.js +++ b/src/main/zapHomeFiles/hud/tools/pageAlertsInformational.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Informational Risk Page Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/pageAlertsLow.js b/src/main/zapHomeFiles/hud/tools/pageAlertsLow.js index 90df8d8bf..5ab78a286 100644 --- a/src/main/zapHomeFiles/hud/tools/pageAlertsLow.js +++ b/src/main/zapHomeFiles/hud/tools/pageAlertsLow.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Low Risk Page Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/pageAlertsMedium.js b/src/main/zapHomeFiles/hud/tools/pageAlertsMedium.js index eafd7e496..ee05b2a0b 100644 --- a/src/main/zapHomeFiles/hud/tools/pageAlertsMedium.js +++ b/src/main/zapHomeFiles/hud/tools/pageAlertsMedium.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Medium Risk Page Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/scope.js b/src/main/zapHomeFiles/hud/tools/scope.js index e7fda00a8..0c70bce2c 100644 --- a/src/main/zapHomeFiles/hud/tools/scope.js +++ b/src/main/zapHomeFiles/hud/tools/scope.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Scope Tool * diff --git a/src/main/zapHomeFiles/hud/tools/showComments.js b/src/main/zapHomeFiles/hud/tools/showComments.js index 1c46f33a1..779bd0f3c 100644 --- a/src/main/zapHomeFiles/hud/tools/showComments.js +++ b/src/main/zapHomeFiles/hud/tools/showComments.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Show Comments Tool * diff --git a/src/main/zapHomeFiles/hud/tools/showEnable.js b/src/main/zapHomeFiles/hud/tools/showEnable.js index 67402c2a8..8b55804a3 100644 --- a/src/main/zapHomeFiles/hud/tools/showEnable.js +++ b/src/main/zapHomeFiles/hud/tools/showEnable.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Show / Enable Tool * diff --git a/src/main/zapHomeFiles/hud/tools/siteAlertsHigh.js b/src/main/zapHomeFiles/hud/tools/siteAlertsHigh.js index 7c387d0c0..cd5b0fc97 100644 --- a/src/main/zapHomeFiles/hud/tools/siteAlertsHigh.js +++ b/src/main/zapHomeFiles/hud/tools/siteAlertsHigh.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * High Risk Site Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/siteAlertsInformational.js b/src/main/zapHomeFiles/hud/tools/siteAlertsInformational.js index b611c5d61..f04450c7b 100644 --- a/src/main/zapHomeFiles/hud/tools/siteAlertsInformational.js +++ b/src/main/zapHomeFiles/hud/tools/siteAlertsInformational.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Informational Risk Site Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/siteAlertsLow.js b/src/main/zapHomeFiles/hud/tools/siteAlertsLow.js index 6ccdc4847..9ef42da49 100644 --- a/src/main/zapHomeFiles/hud/tools/siteAlertsLow.js +++ b/src/main/zapHomeFiles/hud/tools/siteAlertsLow.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Low Risk Site Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/siteAlertsMedium.js b/src/main/zapHomeFiles/hud/tools/siteAlertsMedium.js index 53c2a1624..370a2ac03 100644 --- a/src/main/zapHomeFiles/hud/tools/siteAlertsMedium.js +++ b/src/main/zapHomeFiles/hud/tools/siteAlertsMedium.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Medium Risk Site Alerts Tool * diff --git a/src/main/zapHomeFiles/hud/tools/siteTree.js b/src/main/zapHomeFiles/hud/tools/siteTree.js index e53343a94..db462f01c 100644 --- a/src/main/zapHomeFiles/hud/tools/siteTree.js +++ b/src/main/zapHomeFiles/hud/tools/siteTree.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * SiteTree Tool * diff --git a/src/main/zapHomeFiles/hud/tools/spider.js b/src/main/zapHomeFiles/hud/tools/spider.js index b5d6e0a65..35f672928 100644 --- a/src/main/zapHomeFiles/hud/tools/spider.js +++ b/src/main/zapHomeFiles/hud/tools/spider.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Spider Tool * diff --git a/src/main/zapHomeFiles/hud/tools/toggleScript.js b/src/main/zapHomeFiles/hud/tools/toggleScript.js index adcb3e7ca..a4d6d7050 100644 --- a/src/main/zapHomeFiles/hud/tools/toggleScript.js +++ b/src/main/zapHomeFiles/hud/tools/toggleScript.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Toggle Script tool * diff --git a/src/main/zapHomeFiles/hud/tools/utils/alertUtils.js b/src/main/zapHomeFiles/hud/tools/utils/alertUtils.js index 0b6c9826d..300fbb86d 100644 --- a/src/main/zapHomeFiles/hud/tools/utils/alertUtils.js +++ b/src/main/zapHomeFiles/hud/tools/utils/alertUtils.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + const alertUtils = (function () { function showSiteAlerts(tabId, title, target, alertRisk) { // Note that theres no need to load any tool data here diff --git a/src/main/zapHomeFiles/hud/tools/websockets.js b/src/main/zapHomeFiles/hud/tools/websockets.js index 8654f2148..a333e2364 100644 --- a/src/main/zapHomeFiles/hud/tools/websockets.js +++ b/src/main/zapHomeFiles/hud/tools/websockets.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * WebSockets Tool * diff --git a/src/main/zapHomeFiles/hud/utils.js b/src/main/zapHomeFiles/hud/utils.js index ed634e533..7d7e42947 100644 --- a/src/main/zapHomeFiles/hud/utils.js +++ b/src/main/zapHomeFiles/hud/utils.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Public variables const IS_HUD_INITIALIZED = 'isHudInitialized'; const IS_FIRST_TIME = 'isFirstTime'; diff --git a/src/main/zapHomeFiles/hudtutorial/en_GB/History.js b/src/main/zapHomeFiles/hudtutorial/en_GB/History.js index 0776cd9be..fedeaf9cb 100644 --- a/src/main/zapHomeFiles/hudtutorial/en_GB/History.js +++ b/src/main/zapHomeFiles/hudtutorial/en_GB/History.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* The key you will need to complete this task is: */ diff --git a/src/main/zapHomeFiles/hudtutorial/en_GB/Show.js b/src/main/zapHomeFiles/hudtutorial/en_GB/Show.js index 9ba00dc7c..c19edb8b6 100644 --- a/src/main/zapHomeFiles/hudtutorial/en_GB/Show.js +++ b/src/main/zapHomeFiles/hudtutorial/en_GB/Show.js @@ -1,3 +1,22 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ document.addEventListener('DOMContentLoaded', () => { // Disable the fields diff --git a/src/main/zapHomeFiles/hudtutorial/en_GB/SiteAlerts.js b/src/main/zapHomeFiles/hudtutorial/en_GB/SiteAlerts.js index 0776cd9be..fedeaf9cb 100644 --- a/src/main/zapHomeFiles/hudtutorial/en_GB/SiteAlerts.js +++ b/src/main/zapHomeFiles/hudtutorial/en_GB/SiteAlerts.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* The key you will need to complete this task is: */ diff --git a/src/main/zapHomeFiles/hudtutorial/en_GB/Tutorial.js b/src/main/zapHomeFiles/hudtutorial/en_GB/Tutorial.js index 3afadd7c3..d5c01cdb5 100644 --- a/src/main/zapHomeFiles/hudtutorial/en_GB/Tutorial.js +++ b/src/main/zapHomeFiles/hudtutorial/en_GB/Tutorial.js @@ -1,3 +1,23 @@ +/* + * Zed Attack Proxy (ZAP) and its related class files. + * + * ZAP is an HTTP/HTTPS proxy for assessing web application security. + * + * Copyright $YEAR The ZAP Development Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* The key you will need to complete one of the tasks is: */