The vulnerable code database (Vulncode-DB) is a database for vulnerabilities and their corresponding source code if available. The database extends the NVD / CVE data sets with user-supplied information regarding patch links, vulnerable code offsets and descriptions. Particularly, the database intends to make real-world examples of vulnerable code universally accessible and useful.
This application is currently in an experimental alpha version mostly for demonstration purposes. The application might be unreliable, contains many bugs and is not feature complete. Please set your expectations accordingly.
├── app │ └── [submodules with Flask routes and views] ├── cert (SSL certificates) ├── data │ ├── forms │ └── models (Database models) ├── docker (Docker files) ├── lib (helping libraries) │ └── vcs_handler ├── migrations (Flask-Migrate / Alembic files) ├── static (CSS, JS and other static files) │ ├── css │ ├── js │ │ └── lib │ ├── monaco │ │ └── themes │ └── tutorial ├── templates (Jinja2 templates) │ └── editor │ └── macros ├── tests (Unit tests) ├── third_party (Third-party content) └── vulnerable_code (Temporary directory used for caching repositories)
The setup is simplified with Docker and docker-compose in particular. Having these prerequisites installed you can setup the project using the following instructions:
# Clone the repository and its (third-party) submodules. git clone --recursive https://github.com/google/vulncode-db.git cd vulncode-db # Setup configuration files, the Docker images and containers. ./setup.sh # Initialize the application and run an empty version of it. ./docker/docker-admin.sh run
Additionally, if you intend to add some data consider running: ```
./docker/docker-admin.sh run ``
The main application should then be available athttp://localhost:8080`.
Please also see the documentation provided in
docker/README.mdfor more details.
Vulncode-DB hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute data which is exclusively provided by Vulncode-DB. Any copy you make for such purposes is authorized provided that you reproduce Vulncode-DB's copyright designation and this license in any such copy.
This project builds upon data provided by the CVE and NVD data sets.
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
All NVD data is freely available from our XML Data Feeds. There are no fees, licensing restrictions, or even a requirement to register. All NIST publications are available in the public domain according to Title 17 of the United States Code. Acknowledgment of the NVD when using our information is appreciated. In addition, please email [email protected] to let us know how the information is being used.
This is not an officially supported Google product.