Coder Social home page Coder Social logo

5l1v3r1 / aws-vulnerable-lambda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from torque59/aws-vulnerable-lambda

0.0 1.0 0.0 59 KB

An AWS Lambda vulnerable application written in flask.

Home Page: https://francisalexander.in/blog/vulnerable-application-wrapper-for-aws-lambda.html

License: GNU General Public License v3.0

Shell 2.16% Python 10.81% CSS 2.58% HTML 84.45%

aws-vulnerable-lambda's Introduction

AWS-Vulnerable-Lambda

An AWS Lambda vulnerable application written in flask.

Context

AWS lambda is a serverless platform for deploying your applications.It makes use of the use and throw functionality, where it creates a sandbox and then destroys it once it is done.

AWS lambda works by unzipping your code to a s3 bucket, launches a container in the cluster to represent the function you wrote and the event will be passed on to the function, to take care of the http request and response it makes use of the AWS API gateway.

Security

AWS lambda security issues arise due to improperly configured applications or vulnerable applications being run.It is an interesting space to look around.You could escalate from the function code to the inner aws architecture which might be being used.

AWS lambda can be quite interesting when it is being kept warm. AWS Lambda cold start & warm ups.

Research

There has been some awesome research done into AWS lambda, some of these are i would highly recommend to read upon:

Deployment

The vulnerable application makes use of zappa, which is used to deploy serverless applications (AWS Lambda) written in flask or django.

Configure your zappa_settings

  • Change the s3 bucket name to a unique one preferably which is not used.
  • Incase you use a different aws-region mention it in the file as well.

This requires you to create a amazon aws account and a user with lambda,s3 and api gateway permissions enabled, copy the access token and the paste it within ~/.aws/credentials.

  • pip install awscli
  • virtualenv .venv && source .venv/bin/activate
  • pip install -r requirements.txt
  • set aws credentials.(Create a new user in your aws account and add it in ~/.aws/credentials)
  • bash deploy.sh
  • Use the url in the format - https://url/dev/?ping=ls

** This is by no means meant for deploying at production, use it at your own risk.

Screenshots

alt text

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.