Lookup for vulnerabilities affecting packages.
| Vulnerability_id | VCID-n9tj-nt6t-5yb3 |
| Summary | In the OAuth library for nim prior to version 0.11, the `state` values generated by the `generateState` function do not have sufficient entropy. These can be successfully guessed by an attacker allowing them to perform a CSRF vs a user, associating the user's session with the attacker's protected resources. While `state` isn't exactly a cryptographic value, it should be generated in a cryptographically secure way. `generateState` should be using a CSPRNG. Version 0.11 modifies the `generateState` function to generate `state` values of at least 128 bits of entropy while using a CSPRNG. |
| Aliases |
|
| Fixed_packages |
|
| Affected_packages |
|
| References |
|
| Weaknesses |
| 0 |
| cwe_id |
330 |
| name |
Use of Insufficiently Random Values |
| description |
The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers. |
|
| 1 |
| cwe_id |
352 |
| name |
Cross-Site Request Forgery (CSRF) |
| description |
The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request. |
|
|
| Exploits |
|
| Severity_range_score | 6.5 - 6.5 |
| Exploitability | null |
| Weighted_severity | null |
| Risk_score | null |
| Resource_url | http://public2.vulnerablecode.io/vulnerabilities/VCID-n9tj-nt6t-5yb3 |