VulnerableApp
VulnerableApp copied to clipboard
Add new Vulnerabilities to fulfil goal for handling 100 vulnerabilities
Is your feature request related to a problem? Please describe. There are many new vulnerabilities which need to be included like:
- Unrestricted File Upload
- XXE
- XSLT
There vulnerabilities need to be thought through because this requires handling of sessions which is quite tricky for vulnerableApp. Many be this need a better thinking.
- Source Code Disclosure - /WEB-INF
- CSRF attack
- Session Fixation
For handling 2nd part: https://github.com/SasanLabs/VulnerableApp/issues/173
Need to handle first part i.e. Unrestricted File Upload, XXE, XSLT faster.
XXE -> Example can be used is of Email template or say workflow design or something like that. Actually because we have designed VulnApp in a way where one Api call and that is entirely vulnerable so designing all vulnerabilities in that is tough. Need to think on on this.
XSLT -> https://www.w3schools.com/xml/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog i think can serve as an example. i.e. an endpoint where give the XML and XSLT and we will build the UI.
XXE can be added something like register functionality. XSLT can be to fetch the registered users and showing in the format exposed using XSLT (May be fields etc)
File upload:
- Upload a JS file can be used for XSS if possible.
- if we name file as something like "../../../something.jsp" and if it does place it in correct place then jsp can be executed and can be quite harmful and we can steal or control anything.
- Replacing any existing JS file can be dangerous and impacts customer experience.
Read this tutorial: https://www.youtube.com/watch?v=CmF9sEyKZNo
https://github.com/SasanLabs/VulnerableApp/issues/177 for handling File Upload.
Unrestricted File Upload is done.
As we are having RFI and Unvalidated Redirects which we have not added completely so instead of handling XXE and XSLT i will start working on adding those.
https://github.com/SasanLabs/VulnerableApp/issues/23
URL redirection -> With Ajax calls is quite tough. We can add the client side url redirection but server side requires UI Framework changes. Need to think more on it.