Skip to content

hugesuccessllc/gcve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcve

A place to mess around with GCVE things. Maybe someone else will find this helpful.

Publishing GCVEs

In order to publish with the current schema, all we need to do is grab the relevant CVEs, insert a "vulnId" element at the top, and dump them to the API-designated dump. Then we let a very lighweight CloudFlare worker do the business of sorting by date and returning what's requested.

This all amounts to:

curl https://cveawg.mitre.org/api/cve/CVE-2025-8452 > GCVE-1337-2025-00000000000000000000000000000000000000000000000001011111011111010111111001000000000000000000000000000000000000000000000000000000001.json
# edit in the vulnId
awk 1 GCVE-1337-2025-00000000000000000000000000000000000000000000000001011111011111010111111001000000000000000000000000000000000000000000000000000000001.json >> dumps/gna-1337.ndjson

This is mostly automated with lu-gcveify.rb, which fetches, edits, and concats with the dump file.

AHA!'s GCVE API

The minimally-compliant API is at https://aha-gcve.todb.workers.dev and supports the following:

All other API calls will produce an amusing error. Asking for gna-1337.json will provide a helpful tip to remember that it's ndjson.

Format experiments!

Now ideally, I would be able to write my GCVEs by deriving from CVE JSONv5. According to BCP-03, this should be possible: "GCVE-BCP-03 does not enforce a specific JSON format for vulnerability publication." In practice, though, the extant GCVE lookup infrastructure does seem to require strict CVEv5. See this thread on Mastodon for more.

Daydreaming a schema

This isn't useful for the current GCVE implementations, where they expect a bunch of CVE JSONv5, so basically ignore all this

Enjoy! Not fit for any purpose, 2-Clause BSD licensed, etc.

DNS Spaghetti

AHA!'s GCVEness is expressed across several domains at the moment:

  • takeonme.org : AHA!'s primary domain, where most of AHA! stuff happens. Eventually, everything will move here.
  • hugesuccess.org : Tod's internet-exposed sandbox for web shenanigans.
  • aha-gcve.todb.workers.dev : A CloudFlare worker instance, free-tier, for fronting API calls. Capped at 10,000 requests or some such.
  • gcve.eu : More info about GCVE, and notably, where the canonical index of all GCVE providers are listed, at gcve.json.
  • vulnerability.circl.lu : An endpoint to see the fruits of AHA!'s GCVE labor.

About

A place to mess around with GCVE things

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published