You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During differential fuzzing with github.com/pandatix/go-cvss, I discovered that your implementation does not properly validate inputs.
This could be categorized as CWE-20.
For instance, the input AV:A/AC:L/Au:N/C:C/I:C/A:C/CDP:H/TD:H/CR:H is an invalid CVSS v2 vector as environmental metrics are not defined (IR and AR) where they should all be. This could be verified with the first.org specification Table 13 that shows they are mandatory when the environmental group is specified in the vector.
In order to be compliant, you must check all metrics from a group are specified.
Still during differential fuzzing, I discovered that your implementation suffers from another validation issue. It needs this issue to be re-opened. For input vector AV:A/AC:H/Au:N/C:C/I:C/A:C/Au:N, your implementation does not return any error despite metrics are not ordered properly.
This could be verified with the first.org specification Table 13 that shows they are "in a predetermined order" (Section 2.4, 2nd sentence).
In order to be compliant, you must validate metrics are in the predetermined order.
During differential fuzzing with
github.com/pandatix/go-cvss
, I discovered that your implementation does not properly validate inputs.This could be categorized as CWE-20.
For instance, the input
AV:A/AC:L/Au:N/C:C/I:C/A:C/CDP:H/TD:H/CR:H
is an invalid CVSS v2 vector as environmental metrics are not defined (IR and AR) where they should all be. This could be verified with the first.org specification Table 13 that shows they are mandatory when the environmental group is specified in the vector.In order to be compliant, you must check all metrics from a group are specified.
The following Go code illustrates this issue.
produces ->
The text was updated successfully, but these errors were encountered: