Git Product home page Git Product logo

dvsa's Introduction

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

  • 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)

Prerequisites
  • npm
  • python3
  • Serverless npm install -g serverless
Setting your AWS Account/Region

If you don't want to run with your default aws profile/region, run thhe sls commands with AWS_PROFILE=<aws-profile>/AWS_REGION=<aws-region> or modify the provider.profile/provider.region inside the serverless.yml file

Run

./deploy.sh

Or, Step-by-Step:
  • Install npm dependencies: npm i
  • Install pip dependencies: pip3 install awscli boto3 --user --upgrade
  • Deploy backend: sls deploy
  • Build client: npm run-script client:build
  • Deploy client sls client deploy

Running locally

Run Client

  • npm run-script client:start

Note: This will only work if you previously deployed the backend. If this fails, confirm you still have a be-stack.json file at the root of this project.

Run Backend

  • npm start

If you want to point your local client to your local backend, edit your be-stack.json and set ServiceEndpoint to http://localhost:3000. Note that you 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>


Presentation

Download

Documentation

AWS

see LESSONS for information about hacking DVSA.

see VIDEOS for how to deploy, use and hack DVSA.


Links

OWASP Top 10 - Serverless Interpretation

Deep-Dive into Serverless Attacks - Series

OWASP Serverless Top 10 Project

Twitter account (hackable)

Slack Channel #project-sls-top-10

DVSA blog post

In the News


Acknowledgements

DVSA was created by Tal Melamed


License

Damn Vulnerable Serverless Application (DVSA) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Damn Vulnerable Serverless Application (DVSA) is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Damn Vulnerable Serverless Application (DVSA). If not, see http://www.gnu.org/licenses/.

dvsa's People

Contributors

4ppsec avatar chan9390 avatar indigocarmen avatar ariellee-tm avatar davidcervigni avatar brandone avatar hblankenship avatar paralax avatar maysonchen-cs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.