-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to download Microsoft CSAF #588
Comments
A line from https://msrc.microsoft.com/csaf/changes.csv:
Checking the format, this seems to be missing a timezone, so it is an invalid file. https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#7113-requirement-13-changescsv has
And
https://datatracker.ietf.org/doc/html/rfc3339#section-5.6 then has an ABNF which has
The time-offset is missing in the file. Best would be if the provider could fix this on their end. |
I'm reporting it to Microsoft, and pointing them to your details, thanks! |
Update on that: the time issue is fixed, but now I get this error: {"time":"2024-11-21T22:39:59+01:00","level":"WARN","msg":"Content type is not 'application/json'","url":"https://msrc.microsoft.com/csaf/2024/msrc_cve-2024-49028.json","content_type":"application/json; charset=utf-8"} Their server returns I couldn't find it in the specs, but I'll drop them another mail if needed. |
True. IMHO, both should be valid. |
Yes, this should pass. Suggestion: If we detect an encoding other than UTF-8 we should issue a warning that the tools currently only supports UTF-8 documents. In the long run we may consider adding support for other encodings as well. |
As far as I see it must be an ERROR and we MUST NOT support other encodings. The standard https://datatracker.ietf.org/doc/html/rfc8259#section-8.1 is clear on this:
For the
[..]
The reported errata point https://www.rfc-editor.org/errata/eid5853 correctly argues that a |
Alright, I'm talking to the Microsoft folks again. I don't really have a dog in this fight, I just don't want to implement my own downloader for fun. |
Thanks a lot for reporting the problem to them!
Sounds like you do have an interest in a well implementable standard, though. ;-) |
Absolutely! And more importantly, compatible implementations of said standard 😭 |
I'm really curious the origin of the issue has it seems the validation fails at Microsoft but also NCSC-NL too. cve-search/vulnerability-lookup#94 But maybe adding tests with known sources would be also interesting for the downloader? |
The failure is correct and the error message of the downloader shows that they've "invented" an 18th month. So it is not this issue. |
I just sent a reminder to Microsoft so we hopefully get it sorted. |
Alright they got back to me and will give me an answer by next week or so. @bernhardreiter I have an alternative solution, let me know what you think: the downloader could accept the presence of the encoding, check if it is UTF-8 and raise the exception only if it is something else? |
Just preparing my talk for the CSAF community days, and thus reading https://en.wikipedia.org/wiki/Robustness_principle#Criticism . So far I think we should be strict early in the CSAF 2.0 adoption. |
I get your point, and I'll keep not having a dog in this fight. Depending on Microsoft feedback I'll or won't implement a dumb downloader that just fetches the files from their repo. |
I'm not sure what the issue is, but fetching the CSAF entries from Microsoft fails in a weird way: downloader.log
The call:
Do you have any idea how to fix it?
The text was updated successfully, but these errors were encountered: