Coder Social home page Coder Social logo

verademo's Introduction

VeraDemo - Blab-a-Gag

ℹ️ Notice

This project is intentionally vulnerable! It contains known vulnerabilities and security errors in its code and is meant as an example project for software security scanning tools such as Veracode. Please do not report vulnerabilities in this project; the odds are they’re there on purpose :) .

About

Blab-a-Gag is a fairly simple forum type application which allows:

  • Users can post a one-liner joke.
  • Users can follow the jokes of other users or not (listen or ignore).
  • Users can comment on other users messages (heckle).

URLs

  • /feed shows the jokes/heckles that are relevant to the current user.
  • /blabbers shows a list of all other users and allows the current user to listen or ignore.
  • /profile allows the current user to modify their profile.
  • /login allows you to log in to your account
  • /register allows you to create a new user account
  • /tools shows a tools page that shows a fortune or lets you ping a host.

Run

If you don't already have Docker this is a prerequisite.

docker run --rm -it -p 127.0.0.1:8080:8080 antfie/verademo

Navigate to: http://127.0.0.1:8080.

Exploitation Demos

See the /docs folder. Pipeline Scan results of this application are in /docs/scan_results/results.json.

Technologies Used

  • Spring boot
  • MariaDB

Development

To build the container run this:

docker pull mariadb:10.6.2
docker build --no-cache -t verademo .

To run the container for local development run this:

docker run --rm -it -p 127.0.0.1:8080:8080 --entrypoint bash -v "$(pwd)/app:/app" verademo

You will then need to manually run the two commands within /entrypoint.sh. The first starts the DB in the background whereas the second compiles and runs the application. Typically a container shouldn't have multiple services but this was done for convenience.

verademo's People

Contributors

aaronbutler-veracode avatar antfie avatar ctcampbell avatar mhowes-veracode avatar relaxnow avatar tjarrettveracode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

verademo's Issues

pom.xml miss configured and at the wrong directory in v2.1.1.zip

The file was in the app directory, should be placed in the main directory.

Also in the pom itself the maven-compiler-plugin seems miss configured, as far as I can tell.
I had to comment the plugins (line 140 -155) in order to make the project build in the pipeline.

Even refactoring it like this didn't help
```

org.springframework.boot
spring-boot-maven-plugin
${spring-boot.version}


org.apache.maven.plugins
maven-compiler-plugin

true
lines,vars,source

-g:source,lines,vars


Does not work with Veracode Greenlight

Are additional steps required to have this repository compatible with Veracode Greenlight?

I cloned the project locally and attempted to scan the "app" directory, which resulted in the following error:

"Problem Occurred. Unable to locate the server configuration. Configure the local server and deploy the application."

greenlight_problem_occurred

Version Information

  • Veracode Greenlight (1.8.2.202112220533-RELEASE)
  • IntelliJ IDEA (2021.3)

Clarify that VeraDemo is intentionally vulnerable

The description of this project talks about an intentionally vulnerable web app, but the README file just talks about the "Blab-A-Gag" app. Because we sometimes get actual vulnerability reports about this app, we should consider doing the following:

  • Update the README file to clearly state that this is an intentionally vulnerable project
  • Update the parts of the source code that comment something as /* BAD CODE / to say something like / EXAMPLE VULNERABILITY */ or something along these lines

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.