aboutcode-org / aboutcode-org/vulnerablecode

Add the `weaknesses` data in the API `packages` endpoint.

Abierto
#1,632 1 comentario 0 reacciones 0 asignados Ver en GitHub
Priority: high
Lenguaje dominante
Python
Estrellas
702
Forks
328
Merge medio
3 d 8 h
PR fusionados (30 d)
3

Descripción

https://public.vulnerablecode.io/api/vulnerabilities/7567

```
...
"weaknesses": [
{
"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."
},
{
"cwe_id": 1035,
"name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
"description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
},
{
"cwe_id": 937,
"name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
"description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
}
],
...
```

This is essential data to collect but it is missing from the `affected_by_vulnerabilities` data structure.
For example https://public.vulnerablecode.io/api/packages/156170

Make sure to add the proper QuerySet optimization (prefetch_related).

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.