ThalesGroup / security-risk-assessment-tool

The ISRA security-risk-assessment-tool project is an Electron based application used to do security risk assessments at a technical level
BSD 4-Clause "Original" or "Old" License
22 stars 7 forks source link

[Issue]: Error when deleting a vulnerability used in two attack paths and then application freeze #313

Open SebAtThales opened 1 month ago

SebAtThales commented 1 month ago

Issue Description

When a vulnerability is used in two attack path in a risk, deleting first use and second use, will generate an error and makes the application freeze.

Duplicate Steps

Use attached file to reproduce.

There is one risk defined, with two attack paths (vuln1,vuln2) and (vuln1,vuln3). First delete vuln1 from "Attack Path 1", then delete vuln1 from "Attack Path 2". Application will then display the error message "Failed to delete Risk Attack Path2's vulnerabilityId: 2 for Risk 1", which is wrong as the we tried to delete the vulnerability of ID 1. Than application freeze.

Expected Results

It should be possible to delete those vulnerability use normally.

Version Detected

1.2.0

Attachments

sample.zip