openssl / web

www.openssl.org
52 stars 77 forks source link

Structured vulnerabilities data are no longer available? #483

Open pombredanne opened 5 months ago

pombredanne commented 5 months ago

Hi! Until recently, OpenSSL was publishing structured data about known vulnerabilities at: https://www.openssl.org/news/vulnerabilities.xml and later JSON at news/secjson

The last archived copy is at https://web.archive.org/web/20230601233405/https://www.openssl.org/news/vulnerabilities.xml

Also the page listing is not longer available at https://web.archive.org/web/20221117101928/https://www.openssl.org/news/secjson/ for the CVE in JSON format as in https://www.openssl.org/news/secjson/CVE-2002-0659.json

We are/were relying on this data https://github.com/nexB/vulnerablecode/blob/4a6734b1bbaa8df6fd816f3eb4fd843a88c1ecec/vulnerabilities/importers/openssl.py#L35

It would be useful to restore some of this data to avoid having to resort to screen scraping the web site and parsing the unstructured advisory text files. Publishing the backing git repos that contain the data would be even better.

Do you need some help there?

pombredanne commented 5 months ago

Can I interest you in creating a parseable format for your textual advisories? We recently worked with the GNU libc team for something similar. See https://github.com/nexB/vulnerablecode/issues/1362

pombredanne commented 5 months ago

Also since we are discussing this, it would make sense to have an official openssl package type at https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst since PURLs are used everywhere in SBOMs and security databases.

This would make this easier for everyone and push this informal usage up to the spec https://github.com/nexB/vulnerablecode/blob/4a6734b1bbaa8df6fd816f3eb4fd843a88c1ecec/vulnerabilities/importers/openssl.py#L64

It would be better than the generic PURLs documented as examples here https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#generic

mattcaswell commented 5 months ago

https://www.openssl.org/news/vulnerabilities.xml and later JSON at news/secjson

We no longer maintain vulernabilities.xml since it was superseded by the json format. All the CVEs should have an equivalent json file.

Also the page listing is not longer available at https://web.archive.org/web/20221117101928/https://www.openssl.org/news/secjson/

I suspect that was an accidental change as a result of recent technical changes on the website. @vavroch2010 might know what happened here.

pombredanne commented 5 months ago

@mattcaswell Thanks for the explanation!

To recap, ideally I would like to have:

  1. the published advisory text and JSON files kept in a public git repo
  2. a structured index of https://www.openssl.org/news/secadv/ and https://www.openssl.org/news/secjson/ (or re-enable HTTP directory listing)
  3. a structured format for the text advisories

Some details why:

The data is scattered in multiple places:

Therefore:

pombredanne commented 1 month ago

@t8m anyway I can help here too?