8000 GitHub - bbhunter/DVSA: a Damn Vulnerable Serverless Application
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bbhunter/DVSA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt OWASP DVSA

a Damn Vulnerable Serverless Application


Damn Vulnerable Serverless Application (DVSA) is a deliberately vulnerable application aiming to be an aid for security professionals to test their skills and tools in a legal environment, help developers better understand the processes of securing serverless applications and to aid both students & teachers to learn about serverless application security in a controlled class room environment.

The aim of DVSA is to practice some of the most common serverless vulnerabilities, with a simple straightforward interface.

Please note, there are both documented & undocumented vulnerabilities with this software. This is intentional. You are encouraged to try and discover as many issues as possible.


Disclaimer

Do not install DVSA on a production account

We do not take responsibility for the way in which any one uses this application (DVSA). We have made the purposes of the application clear and it should not be used maliciously. We have given warnings and taken measures to prevent users from installing DVSA on to production accounts.


Deployment from Application Repository

  • Deploy DVSA from the AWS Serverless Application Repository

  • After deployment is complete. Click on 'View CloudFormation Stack'

  • Under 'Outputs' you will find the URL for the application (DVSA Website URL)


Local Development & Deployment

Client

Prerequisites for re-building client
Build client
  • $ ./dvsa.sh client-build
Update client file with previously deployed backend
  • $ ./dvsa.sh client-connect --stack <STACK_NAME>
Updating deployed client with local changes
  • $ ./dvsa.sh client-update --stack/--bucket
  • $ ./dvsa.sh client-update -h/--help for more options
Run Client locally
  • $ ./dvsa.sh client-start

Backend

Prerequisites for building backend
Step-by-Step:
  • Make desired changes to backend code under backend/functions
  • Make desired changes to your cloudformation template.yml
  • If you need post-deployment changes, you can add files to backend/deployment/ and use the backend/deployment/dvsa_init.py function that runs at the end of the deployment to execute the required actions.
  • $ ./dvsa.sh package-template (OPTIONAL: -h/--help for more options)
  • Deploy the output template-file with Cloudformation console/cli

Run Backend locally

Note: If you want to point your local client to your local backend, run $ ./dvsa.sh client-connect and REPLACE the endpoint of ServiceEndpoint with http://localhost:3000 (It will still be using the Cognito pools in AWS).

Email subscription

DVSA sends receipts in the email. You can use the built-in Inbox page within the application to get the emails and obtain the receipts. Each user will be automatically assigned an email from 1secmail.com which will be automatically verified. Real emails will be sent to their account and will appear in the application Inbox page.

If you want users to receive emails to their actual registered email account (e.g. gmail):

  • Send an email verification link to the desired email address, by running the following command (after clicking on the received link, emails will also be sent to their actual email address):

aws ses verify-email-identity --email-address <your_email>

About

a Damn Vulnerable Serverless Application

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.3%
  • Python 37.0%
  • SCSS 3.6%
  • Other 1.1%
0