Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.77 KB

File metadata and controls

50 lines (36 loc) · 1.77 KB

CrowdStrike's VulnApp

Docker Repository on Quay

Usage - Generic Kubernetes

kubectl apply -f  https://raw.githubusercontent.com/crowdstrike/vulnapp/main/vulnerable.example.yaml

Get web address:

watch -n 1 echo 'http://$(kubectl get service vulnerable-example-com  -o yaml -o=jsonpath="{.status.loadBalancer.ingress[0].ip}")/'

If the ip field is not present try:


watch -n 1 echo 'http://$(kubectl get service vulnerable-example-com  -o yaml -o=jsonpath="{.status.loadBalancer.ingress[0].hostname}")/'

Delete the app:

kubectl delete -f  https://raw.githubusercontent.com/crowdstrike/vulnapp/main/vulnerable.example.yaml

Usage - OpenShift

The OpenShift-specific deployment uses a Route with automatic edge TLS termination, configures a ServiceAccount and RoleBinding to run the app as UID 0, and takes advantage of the Topology view's app grouping.

Web console

  1. Switch to the project you want to deploy the app to
  2. Click the (+) icon in the top right
  3. Copy and paste the contents of vulnerable.openshift.yaml
  4. Click Create

To open the webpage, return to the Topology view click the URL link on the deployment icon.

To delete the app, click the kebab menu on the vulnapp application, then Delete Application. You'll have to manually delete the vulnapp ServiceAccount and vulnapp-anyuid RoleBinding.

Command line

# Deploy the app
oc apply -f https://raw.githubusercontent.com/crowdstrike/vulnapp/main/vulnerable.openshift.yaml
# Get the URL
oc get route vulnapp
# Delete the app
oc delete -f https://raw.githubusercontent.com/crowdstrike/vulnapp/main/vulnerable.openshift.yaml