-
Notifications
You must be signed in to change notification settings - Fork 6
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
One more Improper Input Validation in CVSS v2 parsing #31
Labels
bug
Something isn't working
Comments
spiegel-im-spiegel
added a commit
that referenced
this issue
Feb 2, 2023
spiegel-im-spiegel
added a commit
that referenced
this issue
Feb 2, 2023
Fixed that no error when misordered CVSSv2 vector string (issue #31)
Release v1.6.3 |
The previously provided code now produces ->
Maybe you should return a |
spiegel-im-spiegel
added a commit
that referenced
this issue
Feb 4, 2023
Merged
OK! Release v1.6.4. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While differential fuzzing with
github.com/pandatix/go-cvss
I discovered that your implementation does not properly validate CVSS v2 vectors, as it don't check the metric order.In order to be compliant with the first.org specification Section 2.4 ("the vector lists these metrics in a predetermined order [...]") you must validate that every metric is in the order of Table 13.
The following Go code illustrates this issue.
produces ->
As the order is
AV
->AC
->Au
->C
->I
->A
, the CVSS v2 vectorAV:N/AC:L/Au:N/C:N/A:C/I:N
is invalid.Notice this is not specified in CVSS v3 (no metric order), so this issue could not be reproduced with submodule
v3
.The text was updated successfully, but these errors were encountered: