-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Patrick <[email protected]>
- Loading branch information
Showing
23 changed files
with
613 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"title": "Arguments", | ||
"type": "object", | ||
"properties": { | ||
"CVEAPI_URL": { | ||
"title": "CVEAPI_URL", | ||
"maxLength": 2048, | ||
"type": "string", | ||
"description": "URL of the CVE API, defaults to https://cve.openkat.dev/v1", | ||
"default": "https://cve.openkat.dev/v1" | ||
} | ||
} | ||
} |
170 changes: 83 additions & 87 deletions
170
boefjes/tests/examples/inputs/cve-result-with-cvss.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,97 @@ | ||
{ | ||
"cve": { | ||
"data_type": "CVE", | ||
"data_format": "MITRE", | ||
"data_version": "4.0", | ||
"CVE_data_meta": { | ||
"ID": "CVE-2021-46882", | ||
"ASSIGNER": "[email protected]" | ||
}, | ||
"problemtype": { | ||
"problemtype_data": [ | ||
{ | ||
"description": [ | ||
{ | ||
"lang": "en", | ||
"value": "CWE-120" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"references": { | ||
"reference_data": [ | ||
"id": "CVE-2021-46882", | ||
"sourceIdentifier": "[email protected]", | ||
"published": "2023-05-26T17:15:12.703", | ||
"lastModified": "2023-05-29T03:38:59.390", | ||
"vulnStatus": "Analyzed", | ||
"descriptions": [ | ||
{ | ||
"lang": "en", | ||
"value": "The video framework has memory overwriting caused by addition overflow. Successful exploitation of this vulnerability may affect availability." | ||
} | ||
], | ||
"metrics": { | ||
"cvssMetricV31": [ | ||
{ | ||
"url": "https://consumer.huawei.com/en/support/bulletin/2023/5/", | ||
"name": "https://consumer.huawei.com/en/support/bulletin/2023/5/", | ||
"refsource": "MISC", | ||
"tags": [ | ||
"Vendor Advisory" | ||
] | ||
"source": "[email protected]", | ||
"type": "Primary", | ||
"cvssData": { | ||
"version": "3.1", | ||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", | ||
"attackVector": "NETWORK", | ||
"attackComplexity": "LOW", | ||
"privilegesRequired": "NONE", | ||
"userInteraction": "NONE", | ||
"scope": "UNCHANGED", | ||
"confidentialityImpact": "NONE", | ||
"integrityImpact": "NONE", | ||
"availabilityImpact": "HIGH", | ||
"baseScore": 7.5, | ||
"baseSeverity": "HIGH" | ||
}, | ||
"exploitabilityScore": 3.9, | ||
"impactScore": 3.6 | ||
} | ||
] | ||
}, | ||
"description": { | ||
"description_data": [ | ||
{ | ||
"lang": "en", | ||
"value": "The video framework has memory overwriting caused by addition overflow. Successful exploitation of this vulnerability may affect availability." | ||
} | ||
] | ||
} | ||
}, | ||
"configurations": { | ||
"CVE_data_version": "4.0", | ||
"nodes": [ | ||
"weaknesses": [ | ||
{ | ||
"operator": "OR", | ||
"children": [], | ||
"cpe_match": [ | ||
{ | ||
"vulnerable": true, | ||
"cpe23Uri": "cpe:2.3:o:huawei:emui:10.1.0:*:*:*:*:*:*:*", | ||
"cpe_name": [] | ||
}, | ||
"source": "[email protected]", | ||
"type": "Primary", | ||
"description": [ | ||
{ | ||
"vulnerable": true, | ||
"cpe23Uri": "cpe:2.3:o:huawei:emui:10.1.1:*:*:*:*:*:*:*", | ||
"cpe_name": [] | ||
}, | ||
{ | ||
"vulnerable": true, | ||
"cpe23Uri": "cpe:2.3:o:huawei:emui:11.0.0:*:*:*:*:*:*:*", | ||
"cpe_name": [] | ||
}, | ||
{ | ||
"vulnerable": true, | ||
"cpe23Uri": "cpe:2.3:o:huawei:emui:12.0.0:*:*:*:*:*:*:*", | ||
"cpe_name": [] | ||
}, | ||
"lang": "en", | ||
"value": "CWE-120" | ||
} | ||
] | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"nodes": [ | ||
{ | ||
"vulnerable": true, | ||
"cpe23Uri": "cpe:2.3:o:huawei:emui:12.0.1:*:*:*:*:*:*:*", | ||
"cpe_name": [] | ||
"operator": "OR", | ||
"negate": false, | ||
"cpeMatch": [ | ||
{ | ||
"vulnerable": true, | ||
"criteria": "cpe:2.3:o:huawei:emui:10.1.0:*:*:*:*:*:*:*", | ||
"matchCriteriaId": "66AC7F91-917C-40A6-9983-A339EFB091F1" | ||
}, | ||
{ | ||
"vulnerable": true, | ||
"criteria": "cpe:2.3:o:huawei:emui:10.1.1:*:*:*:*:*:*:*", | ||
"matchCriteriaId": "A7FF0AD1-22C2-423B-822A-E6496CEDAB02" | ||
}, | ||
{ | ||
"vulnerable": true, | ||
"criteria": "cpe:2.3:o:huawei:emui:11.0.0:*:*:*:*:*:*:*", | ||
"matchCriteriaId": "0B701EC6-8208-4D22-95A6-B07D471A8A8B" | ||
}, | ||
{ | ||
"vulnerable": true, | ||
"criteria": "cpe:2.3:o:huawei:emui:12.0.0:*:*:*:*:*:*:*", | ||
"matchCriteriaId": "A974CA73-84E8-480B-BB4C-4A81D0C985B2" | ||
}, | ||
{ | ||
"vulnerable": true, | ||
"criteria": "cpe:2.3:o:huawei:emui:12.0.1:*:*:*:*:*:*:*", | ||
"matchCriteriaId": "2DF07E7F-3A18-4B74-B73D-DF3647C2A48F" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"url": "https://consumer.huawei.com/en/support/bulletin/2023/5/", | ||
"source": "[email protected]", | ||
"tags": [ | ||
"Vendor Advisory" | ||
] | ||
} | ||
] | ||
}, | ||
"impact": { | ||
"baseMetricV3": { | ||
"cvssV3": { | ||
"version": "3.1", | ||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", | ||
"attackVector": "NETWORK", | ||
"attackComplexity": "LOW", | ||
"privilegesRequired": "NONE", | ||
"userInteraction": "NONE", | ||
"scope": "UNCHANGED", | ||
"confidentialityImpact": "NONE", | ||
"integrityImpact": "NONE", | ||
"availabilityImpact": "HIGH", | ||
"baseScore": 7.5, | ||
"baseSeverity": "HIGH" | ||
}, | ||
"exploitabilityScore": 3.9, | ||
"impactScore": 3.6 | ||
} | ||
}, | ||
"publishedDate": "2023-05-26T17:15Z", | ||
"lastModifiedDate": "2023-05-29T03:38Z" | ||
} | ||
} |
Oops, something went wrong.