Skip to content

Commit 7509272

Browse files
committed
Add tests
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 69bf0f3 commit 7509272

7 files changed

Lines changed: 698 additions & 93 deletions

File tree

vulnerabilities/importers/mozilla.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def advisory_data(self) -> Iterable[AdvisoryData]:
5151
self.vcs_response.delete()
5252

5353

54-
def to_advisories(path: str) -> List[AdvisoryData]:
54+
def to_advisories(path: Path) -> List[AdvisoryData]:
5555
"""
5656
Convert a file to corresponding advisories.
5757
This calls proper method to handle yml/md files.

vulnerabilities/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def no_rmtree(monkeypatch):
3333
"test_gentoo.py",
3434
"test_istio.py",
3535
"test_models.py",
36-
"test_mozilla.py",
3736
"test_msr2019.py",
3837
"test_package_managers.py",
3938
"test_retiredotnet.py",
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[
2+
{
3+
"aliases": [
4+
"CVE-2006-0294"
5+
],
6+
"summary": "Dynamically changing the style of an element from position:relative\nto position:static can cause Gecko to operate on freed memory.\nIt may be possible to exploit this in order to run arbitrary\ncode.This flaw was introduced during Firefox 1.5 and SeaMonkey 1.0\ndevelopment and does not affect Firefox 1.0 or the Mozilla Suite 1.7Thunderbird 1.5 could be vulnerable if JavaScript is\nenabled in mail. This is not the default setting and we strongly\ndiscourage users from turning on JavaScript in mail. Thunderbird\nis not vulnerable in its default configuration.Update (13 April 2006)\nThis flaw has been fixed in Thunderbird 1.5.0.2",
7+
"affected_packages": [
8+
{
9+
"package": {
10+
"type": "mozilla",
11+
"namespace": null,
12+
"name": "Firefox",
13+
"version": null,
14+
"qualifiers": null,
15+
"subpath": null
16+
},
17+
"affected_version_range": null,
18+
"fixed_version": "1.5.0+1"
19+
},
20+
{
21+
"package": {
22+
"type": "mozilla",
23+
"namespace": null,
24+
"name": "SeaMonkey",
25+
"version": null,
26+
"qualifiers": null,
27+
"subpath": null
28+
},
29+
"affected_version_range": null,
30+
"fixed_version": "1.0.0"
31+
},
32+
{
33+
"package": {
34+
"type": "mozilla",
35+
"namespace": null,
36+
"name": "Thunderbird",
37+
"version": null,
38+
"qualifiers": null,
39+
"subpath": null
40+
},
41+
"affected_version_range": null,
42+
"fixed_version": "1.5.0+2"
43+
}
44+
],
45+
"references": [
46+
{
47+
"reference_id": "mfsa2006-02",
48+
"url": "https://www.mozilla.org/en-US/security/advisories/mfsa2006-02",
49+
"severities": [
50+
{
51+
"system": "generic_textual",
52+
"value": "none",
53+
"scoring_elements": ""
54+
}
55+
]
56+
},
57+
{
58+
"reference_id": "CVE-2006-0294",
59+
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0294",
60+
"severities": []
61+
}
62+
],
63+
"date_published": null
64+
}
65+
]

0 commit comments

Comments
 (0)