Skip to content

Scope classic search and endpoint report reads of shared location tags - #15981

Merged
Maffooch merged 1 commit into
DefectDojo:bugfixfrom
svader0:harden-location-tag-search-report
Sep 17, 2026
Merged

Maffooch merged 1 commit into
DefectDojo:bugfixfrom
svader0:harden-location-tag-search-report

Conversation

@svader0

@svader0 svader0 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Hardening / consistency improvement to how location tag sets are read in the classic UI.

Two readers still went through the raw tag relation instead of the scoped accessor the REST API and the location pages already use. This routes both through that accessor and adds a regression test.

Endpoint gains a readable_tags property mirroring the one on Location, because the search template serves either model and has no branch to tell them apart.

No functional change for correctly-permissioned users.

The Location tag scoping added in DefectDojo#15784 covered the REST API and the
location pages. The classic search view and the Product Endpoint Report
options page were missed, so both still joined the raw tag relation on a
globally deduplicated row. Search also matched on it, which made a
substring operator an oracle over a value the page withholds.

Both now use dojo.location.queries.readable_tag_match, the same predicate
the API filters and the location templates use. Endpoint gains a
readable_tags mirror because simple_search.html serves either model.

Refs H1 #4005137.
@dryrunsecurity

Copy link
Copy Markdown

DryRun Security

This pull request contains critical security findings because the author 'svader0' is not authorized to modify sensitive codepaths in the dojo/endpoint, dojo/search, and dojo/templates directories.

🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/endpoint/models.py (drs_74412bbb)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/endpoint/models.py' matches configured sensitive codepath pattern 'dojo/endpoint/*.py' and was modified by 'svader0' (commit c476df9) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/search/views.py (drs_485a0226)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/search/views.py' matches configured sensitive codepath pattern 'dojo/search/*.py' and was modified by 'svader0' (commit c476df9) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/request_endpoint_report.html (drs_12893326)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/request_endpoint_report.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'svader0' (commit c476df9) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/simple_search.html (drs_e8223257)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/simple_search.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'svader0' (commit c476df9) who is not in the allowed authors list.

We've notified @mtesauro.


Comment to provide feedback on these findings.

Report false positive: @dryrunsecurity fp [FINDING ID] [FEEDBACK]
Report low-impact: @dryrunsecurity nit [FINDING ID] [FEEDBACK]

Example: @dryrunsecurity fp drs_90eda195 This code is not user-facing

All finding details can be found in the DryRun Security Dashboard.

@Maffooch Maffooch added this to the 3.3.200 milestone Sep 17, 2026
@Maffooch
Maffooch added this pull request to the merge queue Sep 17, 2026
Merged via the queue into DefectDojo:bugfix with commit 85e0a39 Sep 17, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants