FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #370 from secureCodeBox/dependencies/update-wpscan… · avicoder/secureCodeBox@863d8a9 · GitHub

Commit 863d8a9

Browse files
authored
Merge pull request secureCodeBox#370 from secureCodeBox/dependencies/update-wpscan-to-3.8.17
Upgraded WPScan Scanner to newest version 3.8.17 and added End-2-End test
2 parents 5eb2f2f + 6b03a00 commit 863d8a9

6 files changed

Lines changed: 33 additions & 5 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,8 @@ jobs:
652652
helm -n demo-apps install unsafe-https ./demo-apps/unsafe-https/ --wait
653653
# Install bodgeit app
654654
helm -n demo-apps install bodgeit ./demo-apps/bodgeit/ --wait
655+
# Install old-wordpress app
656+
helm -n demo-apps install old-wordpress ./demo-apps/old-wordpress/ --wait
655657
# Install plain nginx server
656658
kubectl create deployment --image nginx:alpine nginx --namespace demo-apps
657659
kubectl expose deployment nginx --port 80 --namespace demo-apps
@@ -769,6 +771,18 @@ jobs:
769771
cd tests/integration/
770772
npx jest --ci --color scanner/sslyze.test.js
771773
774+
# ---- WPScan Integration Tests ----
775+
776+
- name: "WPScan Integration Tests"
777+
run: |
778+
kubectl -n integration-tests delete scans --all
779+
helm -n integration-tests install wpscan ./scanners/wpscan/ \
780+
--set="parserImage.repository=docker.io/${{ env.DOCKER_NAMESPACE }}/parser-wpscan" \
781+
--set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
782+
cd tests/integration/
783+
npx jest --ci --color scanner/wpscan.test.js
784+
785+
772786
# ---- Zap Integration Tests ----
773787

774788
- name: "zap Integration Tests"

‎scanners/wpscan/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A Helm chart for the WordPress security scanner that integrates wit
55
type: application
66
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
77
version: v2.7.0-alpha1
8-
appVersion: latest
8+
appVersion: 3.8.17
99
kubeVersion: ">=v1.11.0-0"
1010

1111
keywords:

‎scanners/wpscan/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Incompatible choices (only one of each group/s can be used):
7373
| Key | Type | Default | Description |
7474
|-----|------|---------|-------------|
7575
| image.repository | string | `"wpscanteam/wpscan"` | Container Image to run the scan |
76-
| image.tag | string | defaults to latest because WPscan didn't offer tagged image versions | defaults to the charts appVersion |
76+
| image.tag | string | `nil` | defaults to the charts appVersion |
7777
| parseJob.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the parser will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
7878
| parserImage.repository | string | `"docker.io/securecodebox/parser-wpscan"` | Parser image repository |
7979
| parserImage.tag | string | defaults to the charts version | Parser image tag |

‎scanners/wpscan/helm2.Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A Helm chart for the WordPress security scanner that integrates wit
55
type: application
66
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
77
version: v2.7.0-alpha1
8-
appVersion: v3.8.15
8+
appVersion: 3.8.17
99
kubeVersion: ">=v1.11.0-0"
1010

1111
keywords:

‎scanners/wpscan/values.yaml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ image:
22
# image.repository -- Container Image to run the scan
33
repository: wpscanteam/wpscan
44
# image.tag -- defaults to the charts appVersion
5-
# @default -- defaults to latest because WPscan didn't offer tagged image versions
6-
tag: latest
5+
tag: null
76

87
parserImage:
98
# parserImage.repository -- Parser image repository
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const {scan} = require('../helpers');
2+
3+
test(
4+
'WPScan should find at least 1 finding regarding the old-wordpress demo app',
5+
async () => {
6+
const {count} = await scan(
7+
'wpscan-scanner-dummy-scan',
8+
'wpscan',
9+
['--url', 'old-wordpress.demo-apps.svc'],
10+
90
11+
);
12+
expect(count).toBeGreaterThanOrEqual(1);
13+
},
14+
3 * 60 * 1000
15+
);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL