Global Finding Groups page #12814
Merged
Global Finding Groups page #12814
DryRunSecurity / General Security Analyzer
succeeded
Aug 2, 2025 in 2s
DryRun Security
Details
General Security Analyzer Findings: 2 detected
⚠️ Authorization Bypass in FindingGroupsFilter dojo/filters.py (click for details)
| Type | Authorization Bypass in FindingGroupsFilter |
| Description | The FindingGroupsFilter class, specifically its set_related_object_fields method, is designed to filter engagements based on a pid (product ID). While the ListFindingGroups view correctly uses get_authorized_products to retrieve products the user is authorized to view, the pid parameter is passed directly from the request to the FindingGroupsFilter without explicit authorization checks on the pid itself. This means an attacker could potentially manipulate the pid in the request to filter for engagements within a product they are not authorized to access. Although the final queryset in get_finding_groups is filtered by products (which are authorized), the initial filtering of the engagement queryset within FindingGroupsFilter's set_related_object_fields method based on an unvalidated pid could lead to an information leak or an authorization bypass if this filter is used in other contexts or if the subsequent authorization check is somehow bypassed or misconfigured. |
| Filename | dojo/filters.py |
| CodeLink | django-DefectDojo/dojo/filters.py Lines 2016 to 2055 in 9314f9d |
⚠️ Potential Denial of Service (DoS) dojo/finding_group/views.py (click for details)
| Type | Potential Denial of Service (DoS) |
| Description | The ListFindingGroups view is susceptible to a Denial of Service attack. The page_size parameter is taken directly from user input via request.GET.get("page_size", 25) without any upper bound validation, allowing an attacker to request an extremely large number of items per page. Additionally, the engagement and product filters use request.GET.getlist() and are directly incorporated into __in queries, which can lead to performance degradation if a large number of IDs are provided. The combination of these unbounded inputs with complex Django ORM queries involving distinct(), annotate(), Count(), and Subquery() can result in excessive database load and application server resource consumption, leading to a Denial of Service. |
| Filename | dojo/finding_group/views.py |
| CodeLink | django-DefectDojo/dojo/finding_group/views.py Lines 213 to 329 in 9314f9d |
Loading