Code Monkey home page Code Monkey logo

my-dodgy-app's Introduction

My Dodgy App - Static Analysis Test Application

This application has a number of security vulnerabilities deliberately built into it. The purpose of this application is to verify that static analysis security tools find the vulnerabilities You can find the issues by looking for the string #Oops, which will appear in a comment near each issue.

This application only binds to localhost so other hosts on the network cannot call the vulnerable services.

Vulnerabilities

Bad Random

The HashIt controller uses insecure random, and always produces the same sequence.

http://localhost:8080/hashit?value=foo

The first call to this will always produce an ID of: -723955400

Shell Injection

The HashIt controller passes arbitrary input to the execution shell.

http://localhost:8080/hashit?value=meow;cat%20/etc/passwd;echo

SQL Injection

The HashIt controller allows arbitrary input to be injected into SQL queries in both the hashit and gethash calls.

http://localhost:8080/gethash?id=-723955400' or '1'='1

XSS

The gethash call renders user input in an HTML response.

The following injects some Javascript in the database: http://localhost:8080/hashit?value="<script>alert(1)</script>"

The following renders it in the HTML page: http://localhost:8080/gethash?id=-723955400' or '1'='1

Bad SSL

The Proxy controller forwards HTTP requests to arbitrary hosts, ignoring SSL warnings.

The following URL displays the content from a URL with an invalid SSL configuration. http://localhost:8080/proxy?url=https://self-signed.badssl.com/

my-dodgy-app's People

Contributors

nickelaway avatar

Watchers

 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.