https://github.com/bengmend/nodegoat

https://github.com/bengmend/nodegoat

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.6%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: bengmend
  • License: apache-2.0
  • Language: HTML
  • Default Branch: feature/187
  • Size: 8.6 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 15
  • Releases: 0
Created over 2 years ago · Last pushed 10 months ago
Metadata Files
Readme Contributing License Code of conduct

README.md

NodeGoat

Being lightweight, fast, and scalable, Node.js is becoming a widely adopted platform for developing web applications. This project provides an environment to learn how OWASP Top 10 security risks apply to web applications developed using Node.js and how to effectively address them.

Getting Started

OWASP Top 10 for Node.js web applications:

Know it!

Tutorial Guide explaining how each of the OWASP Top 10 vulnerabilities can manifest in Node.js web apps and how to prevent it.

Do it!

A Vulnerable Node.js App for Ninjas to exploit, toast, and fix. You may like to set up your own copy of the app to fix and test vulnerabilities. Hint: Look for comments in the source code.

Default user accounts

The database comes pre-populated with these user accounts created as part of the seed data - * Admin Account - u:admin p:Admin123 * User Accounts (u:user1 p:User1123), (u:user2 p:User2_123) * New users can also be added using the sign-up page.

How to Setup Your Copy of NodeGoat

OPTION 1 - One click install on Heroku

The the quickest way to get running with NodeGoat is to click the button below to deploy it on Heroku.

Even though it is not essential, but recommended that you fork this repository and deploy the forked repo. This would allow you to fix vulnerabilities in your own forked version, and deploy and test it on heroku.

Deploy

This Heroku instance uses Free ($0/month) node server and MongoLab add-on.

OPTION 2 - Run NodeGoat on your machine

If you do not wish to run NodeGoat on Heroku, please follow these steps to setup and run it locally - * Install Node.js - NodeGoat requires Node v8 or above

  • Clone the github repository git clone https://github.com/OWASP/NodeGoat.git

*go to the directory cd NodeGoat

  • Install node modules npm install

  • Create Mongo DB: You can create a remote MongoDB instance or use local mongod installation

    • A. Using Remote MongoDB
      • Create a sandbox mongoDB instance (free) at mLab
      • Create a new database.
      • Create a user.
      • Update the db property in file config/env/development.js to reflect your DB setup. (in format: mongodb://<username>:<password>@<databasename>)
    • OR B.Using local MongoDB
      • If using local Mongo DB instance, start mongod.
      • Update the db property in file config/env/development.js to reflect your DB setup. (in format: mongodb://localhost:27017/<databasename>)
  • Populate MongoDB with seed data required for the app

    • Run the npm-script below to populate the DB with seed data required for the application. Pass the desired environment as argument. If not passed, "development" is the default: npm run db:seed
  • Start server, this starts the NodeGoat application at url http://localhost:4000/ npm start

  • Start server with nodemon, this starts the NodeGoat application at url http://localhost:5000/ npm run dev

OPTION 3 - Run NodeGoat on Docker

You need to install docker and docker compose to be able to use this option

The repo includes the Dockerfile and docker-compose.yml necessary to setup the app and the db instance then connect them together.

  • Change the db config in config/env/development.js to point to the respective Docker container. db: "mongodb://mongo:27017/nodegoat",
  • Build the images: docker-compose build
  • Run the app: docker-compose up

Customizing the Default Application Configuration

The default application settings (database url, http port, etc.) can be changed by updating the config file.

Report bugs, Feedback, Comments

  • Open a new issue or contact team by joining chat at Slack or Join the chat at https://gitter.im/OWASP/NodeGoat

Contributing

Please Follow the contributing guide

Code Of Conduct (CoC)

This project is bound by a Code of Conduct.

Contributors

Here are the amazing contributors to the NodeGoat project.

Supports

  • Thanks to JetBrains for providing licenses to fantastic WebStorm IDE to build this project.

License

Code licensed under the Apache License v2.0.

Owner

  • Login: bengmend
  • Kind: user

GitHub Events

Total
  • Issues event: 1
  • Delete event: 2
  • Issue comment event: 4
  • Push event: 219
  • Pull request event: 6
  • Create event: 5
Last Year
  • Issues event: 1
  • Delete event: 2
  • Issue comment event: 4
  • Push event: 219
  • Pull request event: 6
  • Create event: 5

Dependencies

apps/server-render/Dockerfile docker
  • node 12-alpine build
apps/server-render/docker-compose.yml docker
  • mongo latest
apps/server-render/package-lock.json npm
  • 1125 dependencies
apps/server-render/package.json npm
  • async ^2.0.0-rc.4 development
  • cypress ^3.3.1 development
  • grunt ^1.0.1 development
  • grunt-cli ^1.2.0 development
  • grunt-concurrent ^2.3.0 development
  • grunt-contrib-jshint ^1.0.0 development
  • grunt-contrib-watch ^1.0.0 development
  • grunt-env latest development
  • grunt-if https://github.com/binarymist/grunt-if/tarball/master development
  • grunt-jsbeautifier ^0.2.12 development
  • grunt-mocha-test ^0.12.7 development
  • grunt-npm-install ^0.3.0 development
  • grunt-retire ^0.3.12 development
  • mocha ^2.4.5 development
  • nodemon ^1.19.1 development
  • selenium-webdriver ^2.53.2 development
  • should ^8.3.1 development
  • zaproxy ^0.2.0 development
  • bcrypt-nodejs 0.0.3
  • body-parser ^1.15.1
  • consolidate ^0.14.1
  • csurf ^1.8.3
  • dont-sniff-mimetype ^1.0.0
  • express ^4.13.4
  • express-session ^1.13.0
  • forever ^3.0.0
  • helmet ^2.0.0
  • marked 0.3.5
  • mongodb ^2.1.18
  • needle 2.2.4
  • node-esapi 0.0.1
  • serve-favicon ^2.3.0
  • swig ^1.4.2
  • underscore ^1.8.3
package.json npm
  • husky ^4.2.3 development
  • lerna ^3.20.2 development