File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
app/utils/vex/generate_statements Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,8 @@ async def generate_tix_statement(
2828 _cwe = {}
2929 _cwe ["@id" ] = f"https://cwe.mitre.org/data/definitions/{ cwe ["@ID" ]} .html"
3030 _cwe ["abstraction" ] = cwe ["@Abstraction" ]
31- _cwe ["name" ] = cwe ["@ID" ]
31+ _cwe ["name" ] = f"CWE- { cwe ["@ID" ]} "
3232 _cwe ["description" ] = cwe ["Extended_Description" ] if "Extended_Description" in cwe else cwe ["Description" ]
33- if "Background_Details" in cwe :
34- _cwe ["background_detail" ] = cwe ["Background_Details" ]["Background_Detail" ]
35- if "Common_Consequences" in cwe :
36- _cwe ["consequences" ] = cwe ["Common_Consequences" ]["Consequence" ]
37- if "Detection_Methods" in cwe :
38- _cwe ["detection_methods" ] = cwe ["Detection_Methods" ]["Detection_Method" ]
39- if "Potential_Mitigations" in cwe :
40- _cwe ["potential_mitigations" ] = cwe ["Potential_Mitigations" ]["Mitigation" ]
41- if "Demonstrative_Examples" in cwe :
42- _cwe ["demonstrative_examples" ] = cwe ["Demonstrative_Examples" ]["Demonstrative_Example" ]
4333 statement ["vulnerability" ]["cwes" ].append (_cwe )
4434 is_imported_any = False
4535 for path in paths :
You can’t perform that action at this time.
0 commit comments