aboutcode-org / aboutcode-org/vulnerablecode

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

未关闭
#1,632 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Priority: high
主要语言
Python
星标
702
派生
328
平均合并
3 天 8 小时
30 天内合并 PR
3

描述

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).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。