Git Product home page Git Product logo

vulnerableapp-php's People

Contributors

preetkaran20 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vulnerableapp-php's Issues

Add hints to file upload vulnerability

Problem statement
If you look at VulnerableApp-facade which is the User-interface for VulnerableApp-php, it has a way to tell the hints so that users can learn about the Vulnerability.
image

Solution
So we need to expose that hints objects, have a look at: https://github.com/SasanLabs/VulnerableApp-php/blob/main/src/FileUploadVulnerability/FileUpload.php#L428 for exposing hint metrics. Hints is present in the object definition:

, we need to populate it.

Adding IDE configuration and debugging configuration for VulnerableApp-php

As VulnerableApp-php is in initial phase and hence we are using VSCode as IDE for the project, we do the code changes and then use docker to test the code changes.
As this is quite a tedious task where there is no way to debug the code except the very basic echo statements.

Solutions

  1. We are looking for an IDE setup for the project such that we can debug the code changes without deployments.
  2. Clear set of instructions for IDE setup.

Developing Framework in PHP for VulnerableApp-php

The requirement is developing the framework in PHP to achieve following goals:

  1. Ease of writing vulnerability (we want to make it very easy for other developers to write new vulnerabilities). we have done same in https://github.com/SasanLabs/VulnerableApp where adding new vulnerability is as simple as running a command. Look at: https://github.com/SasanLabs/VulnerableApp#contributing-to-project.
  2. Framework should have a way to expose 2 pieces of information,

Add scanner endpoint to the application

Every application which ties to Owasp VulnerableApp-Facade/VulnerableApp has a scanner endpoint that exposes information about VulnerableApplication which will be used by DAST tools like OWASP ZAP.

we already exposed this information in Owasp VulnerableApp: https://github.com/SasanLabs/VulnerableApp/blob/master/src/main/java/org/sasanlabs/controller/VulnerableAppRestController.java#L91
we would like to expose similar information. If you want to look at how it works then start OWASP VulnerableApp-facade application using https://github.com/SasanLabs/VulnerableApp-facade#simple-start and then visit: http://localhost/VulnerableApp/scanner endpoint, you will see the json exposed. we need similar json structure from VulnerableApp-php as well.

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.