@@ -55,7 +55,18 @@ test("should properly parse file with a single result", async () => {
5555 "cwe": "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
5656 "owasp_category": "A1: Injection",
5757 "references": [
58- "https://owasp.org/www-community/attacks/Command_Injection",
58+ {
59+ "type": "URL",
60+ "value": "https://owasp.org/www-community/attacks/Command_Injection",
61+ },
62+ {
63+ "type": "CWE",
64+ "value": "CWE-78",
65+ },
66+ {
67+ "type": "URL",
68+ "value": "https://cwe.mitre.org/data/definitions/78.html",
69+ },
5970 ],
6071 "rule_source": "https://semgrep.dev/r/python.django.security.injection.command.command-injection-os-system.command-injection-os-system",
6172 },
@@ -86,7 +97,18 @@ test("should properly parse file with multiple results", async () => {
8697 "cwe": "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
8798 "owasp_category": "A1: Injection",
8899 "references": [
89- "https://owasp.org/www-community/attacks/Command_Injection",
100+ {
101+ "type": "URL",
102+ "value": "https://owasp.org/www-community/attacks/Command_Injection",
103+ },
104+ {
105+ "type": "CWE",
106+ "value": "CWE-78",
107+ },
108+ {
109+ "type": "URL",
110+ "value": "https://cwe.mitre.org/data/definitions/78.html",
111+ },
90112 ],
91113 "rule_source": "https://semgrep.dev/r/python.django.security.injection.command.command-injection-os-system.command-injection-os-system",
92114 },
@@ -101,7 +123,18 @@ test("should properly parse file with multiple results", async () => {
101123 "cwe": "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
102124 "owasp_category": "A1: Injection",
103125 "references": [
104- "https://owasp.org/www-community/attacks/Command_Injection",
126+ {
127+ "type": "URL",
128+ "value": "https://owasp.org/www-community/attacks/Command_Injection",
129+ },
130+ {
131+ "type": "CWE",
132+ "value": "CWE-78",
133+ },
134+ {
135+ "type": "URL",
136+ "value": "https://cwe.mitre.org/data/definitions/78.html",
137+ },
105138 ],
106139 "rule_source": "https://semgrep.dev/r/python.django.security.injection.command.command-injection-os-system.command-injection-os-system",
107140 },
0 commit comments