mirror of
https://github.com/0xMarcio/cve.git
synced 2026-10-23 16:35:19 +00:00
Refine GitHub PoC classification
This commit is contained in:
1 parent
f45e320a38
commit
3f72a21d2d
50 files changed
+76
-91
No files matched your search
@@ -76,6 +76,19 @@ class RepositoryClassificationTests(unittest.TestCase):
|
||||
{"CVE-2026-31431", "CVE-2026-41940"},
|
||||
)
|
||||
|
||||
def test_rejects_readme_reference_when_repository_names_another_cve(self) -> None:
|
||||
repo = self.repo(
|
||||
"AcmeSecurity/CVE-2026-20841-PoC",
|
||||
"Proof of concept for CVE-2026-20841",
|
||||
"The approach resembles the CVE-2016-0856 exploit.",
|
||||
)
|
||||
repo["root"] = {"entries": [{"name": "PoC.md"}]}
|
||||
self.assertEqual(update_cves.qualifying_repo_cves(repo, 2016, []), set())
|
||||
self.assertEqual(
|
||||
update_cves.qualifying_repo_cves(repo, 2026, []),
|
||||
{"CVE-2026-20841"},
|
||||
)
|
||||
|
||||
def test_rejects_profile_and_checker_repositories(self) -> None:
|
||||
profile = self.repo(
|
||||
"AcmeSecurity/AcmeSecurity",
|
||||
|
||||
Reference in new issue
Block a user