Code Monkey home page Code Monkey logo

vulnerableapp-facade's Introduction

Owasp VulnerableApp-facadeOwasp VulnerableApp-facade

OWASP Incubator License codecov PRs Welcome Docker Pulls

As we are seeing a lot of technological enhancements in the industry in the past few years, these technical enhancements are solving one or the other problem however, with that they also bring few different vulnerabilities. Vulnerable Applications are generally written in one of the tech stacks like either Node.js or Java with a SQL or NoSQL database etc. and hence they are not able to expand to a whole new set of vulnerabilities that are present in other technologies. Also adding more vulnerabilities in a single vulnerable application makes it heavier and complex which finally makes it unmaintainable. So VulnerableApp-facade is built to solve this problem by building a distributed farm of Vulnerable Applications such that they can be built agnostic to tech stacks.

High Level Design Details

High Level Design

VulnerableApp-facade is a small component which acts as a webserver and a gateway. It routes the calls to different Vulnerable Applications which are registered with it based on an url pattern. It also exposes a schema/contract (Vulnerability Definition) and if a vulnerable application adhere to that then it will be able to interact and route the traffic to that vulnerable application. It also provides the generic skeleton UI which it builds by reading the provided schema (Vulnerability Definition) from the vulnerable application and then loads the UI specific to vulnerable application inside the skeleton UserInterface.

Glimpse of the Owasp VulnerableApp-Facade

Owasp VulnerableApp-Facade

How to run the project

VulnerableApp-facade is a farm of vulnerable applications where each application runs as a docker container. VulnerableApp-facade has docker-compose.yml file which contains docker configuration of other vulnerable applications along with docker configuration of VulnerableApp-facade.

Simple Start

In order to run entire suit please follow the below steps:

  1. Download and Install Docker Compose.
  2. Clone the github repository
  3. Open the terminal and navigate to the Project root directory
  4. Run the command: docker-compose pull && docker-compose up
  5. Navigate to browser and visit http://localhost to play with the application.

Advanced Start

As docker-compose.yml contains all the applications which adhere to the schema of VulnerableApp-facade so in case you are looking for specific vulnerable applications like only Java related vulnerable applications then remove other vulnerable applications from docker-compose.yml and then run steps as mentioned in the Simple start step.

How to Contribute to the project

VulnerableApp-facade have majorly 2 components:

  1. React UI component
  2. Lua module

React UI component is used to load the skeleton UserInterface and Lua module is used to merge the Vulnerability Definitions exposed by different vulnerable applications. In order to do changes in React UI component,

  1. Start the VulnerableApplication-facade using steps mentioned at Simple Start. This is an important step as it will start the underlying VulnerableApplications which will be invoked by the Facade UI internally. Consider the underlying VulnerableApplications as the backend for Facade application.
  2. Navigate to facade-app folder
  3. Do the code changes
  4. Run npm run start which will start the npm server.
  5. Navigate to http://localhost:3000 to verify/view the changes

Lua module is used for handling the Nginx configuration and communication between facade application and VulnerableApplications which is the backend for facade application. In order to make changes in Lua module, the easy way is to add the changes in the lua files and build the docker image with those changes by executing command: docker build . -t sasanlabs/owasp-vulnerableapp-facade:unreleased and then run the project as mentioned at How to run the project

Before raising the PR with UI changes please execute npm run pretty command in facade-app folder to auto handle formatting of javascript/typescript files.

Integrated Vulnerable Applications

  1. Owasp VulnerableApp
  2. VulnerableApp-jsp
  3. VulnerableApp-php

Contact

Please raise a github issue for enhancement/issues in VulnerableApp-facade or send email to [email protected] regarding queries we will try to resolve issues asap.

Other links

  1. Owasp Project link
  2. Github pages

vulnerableapp-facade's People

Contributors

preetkaran20 avatar dripcoding avatar merry-degaga avatar duy-l avatar amrendranath avatar lejara avatar prince-mendiratta avatar sampathkumaramex avatar sidd-oo 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.