Refine GitHub PoC classification

This commit is contained in:
0xMarcio committed 2026-09-01 19:24:05 +02:00
1 parent f45e320a38
commit 3f72a21d2d
50 files changed
+76 -91

No files matched your search

+13
View File
@@ -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",