Skip to content

Commit 56d5954

Browse files
Initial commit (#80)
1 parent 9e105e1 commit 56d5954

File tree

3 files changed

+85
-1
lines changed

3 files changed

+85
-1
lines changed

docker-compose.zap.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '3.8'
2+
3+
services:
4+
ffc-ahwr-backoffice:
5+
command: npm run start:watch
6+
build:
7+
target: development
8+
image: ffc-ahwr-backoffice-development
9+
environment:
10+
NODE_ENV: test
11+
volumes:
12+
- ./test-output/:/home/node/test-output/
13+
14+
zap-baseline-scan:
15+
image: owasp/zap2docker-stable:2.11.1
16+
command: zap-baseline.py -t http://ffc-ahwr-backoffice:${PORT:-3000} -c config/zap.conf -r test-output/zap-report.html -a -d -I
17+
depends_on:
18+
- ffc-ahwr-backoffice
19+
volumes:
20+
- ./test-output/:/zap/wrk/test-output/
21+
- ./zap/:/zap/wrk/config/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ffc-ahwr-backoffice",
3-
"version": "1.17.4",
3+
"version": "1.18.0",
44
"description": "Back office of the health and welfare of your livestock",
55
"homepage": "https://github.com/DEFRA/ffc-ahwr-backoffice",
66
"main": "app/index.js",

zap/zap.conf

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# zap-baseline rule configuration file
2+
# Change WARN to IGNORE to ignore rule or FAIL to fail if rule matches
3+
# Only the rule identifiers are used - the names are just for info
4+
# You can add your own messages to each rule by appending them after a tab on each line.
5+
10009 WARN (In Page Banner Information Leak)
6+
10010 WARN (Cookie No HttpOnly Flag)
7+
10011 WARN (Cookie Without Secure Flag)
8+
10015 WARN (Incomplete or No Cache-control and Pragma HTTP Header Set)
9+
10017 WARN (Cross-Domain JavaScript Source File Inclusion)
10+
10019 WARN (Content-Type Header Missing)
11+
10020 WARN (X-Frame-Options Header Scanner)
12+
10021 WARN (X-Content-Type-Options Header Missing)
13+
10023 WARN (Information Disclosure - Debug Error Messages)
14+
10024 WARN (Information Disclosure - Sensitive Information in URL)
15+
10025 WARN (Information Disclosure - Sensitive Information in HTTP Referrer Header)
16+
10026 WARN (HTTP Parameter Override)
17+
10027 WARN (Information Disclosure - Suspicious Comments)
18+
10028 WARN (Open Redirect)
19+
10029 WARN (Cookie Poisoning)
20+
10030 WARN (User Controllable Charset)
21+
10031 WARN (User Controllable HTML Element Attribute (Potential XSS))
22+
10032 WARN (Viewstate Scanner)
23+
10033 WARN (Directory Browsing)
24+
10034 WARN (Heartbleed OpenSSL Vulnerability (Indicative))
25+
10035 WARN (Strict-Transport-Security Header Scanner)
26+
10036 WARN (HTTP Server Response Header Scanner)
27+
10037 WARN (Server Leaks Information via "X-Powered-By" HTTP Response Header Field(s))
28+
10038 WARN (Content Security Policy (CSP) Header Not Set)
29+
10039 WARN (X-Backend-Server Header Information Leak)
30+
10040 WARN (Secure Pages Include Mixed Content)
31+
10041 WARN (HTTP to HTTPS Insecure Transition in Form Post)
32+
10042 WARN (HTTPS to HTTP Insecure Transition in Form Post)
33+
10043 WARN (User Controllable JavaScript Event (XSS))
34+
10044 WARN (Big Redirect Detected (Potential Sensitive Information Leak))
35+
10049 WARN (Content Cacheability)
36+
10050 WARN (Retrieved from Cache)
37+
10052 WARN (X-ChromeLogger-Data (XCOLD) Header Information Leak)
38+
10054 WARN (Cookie Without SameSite Attribute)
39+
10055 WARN (CSP Scanner)
40+
10056 WARN (X-Debug-Token Information Leak)
41+
10057 WARN (Username Hash Found)
42+
10061 WARN (X-AspNet-Version Response Header Scanner)
43+
10062 WARN (PII Disclosure)
44+
10063 WARN (Feature Policy Header Not Set)
45+
10094 WARN (Base64 Disclosure)
46+
10096 WARN (Timestamp Disclosure)
47+
10097 WARN (Hash Disclosure)
48+
10098 WARN (Cross-Domain Misconfiguration)
49+
10099 WARN (Source Code Disclosure)
50+
10105 WARN (Weak Authentication Method)
51+
10108 WARN (Reverse Tabnabbing)
52+
10109 WARN (Modern Web Application)
53+
10110 WARN (Dangerous JS Functions)
54+
10202 WARN (Absence of Anti-CSRF Tokens)
55+
2 WARN (Private IP Disclosure)
56+
3 WARN (Session ID in URL Rewrite)
57+
50001 WARN (Script Passive Scan Rules)
58+
90001 WARN (Insecure JSF ViewState)
59+
90002 WARN (Java Serialization Object)
60+
90003 WARN (Sub Resource Integrity Attribute Missing)
61+
90011 WARN (Charset Mismatch)
62+
90022 WARN (Application Error Disclosure)
63+
90033 WARN (Loosely Scoped Cookie)

0 commit comments

Comments
 (0)