Skip to content

A client and library to cve-services 2.x to provide CVE management for CNA and CERTs

License

Notifications You must be signed in to change notification settings

CERTCC/cveClient

Repository files navigation

cveClient

A web-based client interface and a client library to cve-services 2.x to provide CVE JSON (5.x) vulnerability management for CVE Numbering Authorities (CNAs) and Roots.

Introduction

A JavaScript library and simple HTML interface for CVE services that is like RedHat's cvelib and Vulnogram. Provides capabilities to interface with cve-services with a JavaScript client and simple HTML UI. You can just serve the index.html file from any static content area of your webserver (Apache2, NGINX, thttpd, lighttpd, Caddy).

A JavaScript encryption toolkit is also served from encrypt-storage.js file. This is a simple asymmetric encryption to protect your API Key while in localStorage (if Keep me logged in checkbox is enabled) or sessionStorage with PKI stored in native indexedDB. This provides some limited protection of your API keys. Currently cve-services expects API key for every transaction, there is no middleware providing session capability or related CSRF protection.

Demo of the UI and client library can be accessed at https://certcc.github.io/cveClient/ or CERT's demo site. Currently the allowed servers (cve-services servers) are limited with Content Security Policy headers to cve-services 2.x production site, testing site and a localhost instance.

Dependency libraries for HTML UI only.

Except for Ace Editor and SweetAlert2 library all the dependencies are served from CDN sources with sha-284 Subsource Integrity checks. There is some issue with the nightly builds, so these two libraries are served from local. Please ensure you understand their license agreements as well.

Roll out your own using cveClientlib

If you plan to rollour your own UI, this JavaScript library is helpful. Also note that there is another client library with similar capabilities built with ECMAScrip6 requirement at https://github.com/xdrr/cve.js.

You can use the cveClientlib.js to do all the tasks being performed by the current UI. The file is called cveClientlib.js as Safari browsers have trouble with filename and a Class name being the same.

Risks of using API keys in browser for CVE-Services

See the RISKS.md that captures some of the inherent risks of using API keys to access an API service. If you decide to use these web base clients to access cve-services, please be aware of these risks.

Installation on your own webserver

See the INSTALL.md, if you would like to run a private version of the cveClient in your own webserver.

About

A client and library to cve-services 2.x to provide CVE management for CNA and CERTs

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •