Skip to content

Hardening: narrow a scan-import validation error message - #16030

Open
svader0 wants to merge 1 commit into
DefectDojo:bugfixfrom
svader0:harden-import-error-product-type
Open

svader0 wants to merge 1 commit into
DefectDojo:bugfixfrom
svader0:harden-import-error-product-type

Conversation

@svader0

@svader0 svader0 commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Hardening to the scan-import permission checks. Narrows one validation error message so it reports only values the caller supplied, and adds regression tests.

No functional change for correctly-permissioned users. Two existing assertions in unittests/test_importers_importer.py are updated to the shorter message.

The message named the stored Product Type of the resolved product. That
value reaches callers who hold no grant on it, because the import
permission classes resolve the product before any authorization call
runs. Report only the value the caller supplied.

Refs H1 #4032888, story 15579.
@dryrunsecurity

Copy link
Copy Markdown

DryRun Security

This pull request modifies a sensitive codepath in dojo/importers/auto_create_context.py by an author not on the allowed list. The finding is classified as low severity and is not blocking.

Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/auto_create_context.py (drs_2a366336)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/auto_create_context.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'svader0' (commit 9187681) who is not in the allowed authors list.

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.

This branch has not been deployed

No deployments
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.

1 participant