Skip to content
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

POST /cve-id allows CVE-0000-xxxxx (year 0) CWE-839 #1321

Closed
ElectricNroff opened this issue Jan 14, 2025 · 0 comments
Closed

POST /cve-id allows CVE-0000-xxxxx (year 0) CWE-839 #1321

ElectricNroff opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@ElectricNroff
Copy link
Contributor

In v2.5.1,

if (daysUntilYear(year) <= 90) {
// Auto reserve the year

is apparently attempting to allow reservations in October/November/December for the next calendar year, but in practice also allows reservations for all non-negative earlier years (even year 0, which did not exist) because daysUntilYear can return a negative number.

Traditionally, cve_year 1999 has been for vulnerabilities disclosed in 1999 or earlier. If this principle is maintained, then it should not be possible to manipulate parameters to auto-reserve for 1998 or earlier.

Example:

POST /api/cve-id?short_name=exampleCNA&batch_type=sequential&cve_year=0000&amount=1

Outcome:

{"cve_ids":[{"requested_by":{"cna":"exampleCNA","user":
"alice@example.com"},"cve_id":"CVE-0000-20001","cve_year":"0000",
"state":"RESERVED","owning_cna":"exampleCNA","reserved":
"2025-01-14T00:39:51.586Z"}],"meta":{"remaining_quota":68382}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants