django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

[FIX] Reassign an engagement to another product

Open X0x1RG9f opened this issue 1 year ago • 5 comments

On the Engagement Edit page, it is possible to change the product. However, this has no effect on real engagement's product assignment. Adding the line to fix the issue.

https://github.com/DefectDojo/django-DefectDojo/issues/6588

X0x1RG9f avatar Jul 28 '22 10:07 X0x1RG9f

I am not sure if this is a good idea. Deduplication works on a product level per default. So the old product might have findings that were marked as duplicates which are not duplicates anymore after moving the engagement and for the the new product deduplication would need to be run.

@X0x1RG9f Is there a strong use case to move an engagement to another product? If yes, the deduplication issue needs to be solved; if no we should remove the product field from editing engagements.

StefanFl avatar Jul 31 '22 06:07 StefanFl

This is a fix for #1512 that stopped working at some point

Maffooch avatar Jul 31 '22 17:07 Maffooch

@Maffooch Well, yes, but aren't the problems with the deduplication relevant?

StefanFl avatar Jul 31 '22 18:07 StefanFl

Most likely yes. I believe we could manually kick the dedupe action after saving the engagement, but I am not sure how effective it would be without modification.

Maffooch avatar Aug 02 '22 13:08 Maffooch

I see Stefan's point, but I would assume most users would expect the copy to not modify data, rather than us trying to modify it smartly.

devGregA avatar Aug 02 '22 19:08 devGregA

I know, this is already merged but I also suppose there should not be able easily to change the product for engagement.

There is high chance, that Engagement contains Test. This Test may contain Finding and Finding may contain Endpoint. But Endpoint are directly connected to Product, not only to Finding. Change of Product for Engagement can create a lot of problems if nothing else is changed. Same for Product_API_Scan_Configuration and DojoMeta.

kiblik avatar Aug 16 '22 08:08 kiblik