Skip to content

Restrict JIRA finding-mapping project field to authorized projects - #15355

Open
svader0 wants to merge 2 commits into
DefectDojo:bugfixfrom
svader0:harden-jira-finding-mapping-authz
Open

Restrict JIRA finding-mapping project field to authorized projects#15355
svader0 wants to merge 2 commits into
DefectDojo:bugfixfrom
svader0:harden-jira-finding-mapping-authz

Conversation

@svader0

@svader0 svader0 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Adds an authorization scope to the writable project field on the JIRA finding-mapping API so a mapping can only reference a JIRA project the caller is allowed to edit. Previously the field accepted any project id resolved from the full manager. Includes a regression test for create and update. No functional change for correctly-permissioned users.

The project relation on the JIRA finding-mapping API is writable but was
resolved from the full manager, so a create or update could reference a
project the caller is not authorized for. Scope the field's queryset to the
caller's authorized projects and add a regression test for create and update.
@dryrunsecurity

dryrunsecurity Bot commented Jul 24, 2026

Copy link
Copy Markdown

DryRun Security

This pull request contains a critical finding where the file 'dojo/jira/api/serializers.py' was modified by an author not on the allowed list for this sensitive codepath. Although the issue is flagged as failing, it is not currently set to block the merge.

🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/jira/api/serializers.py (drs_a785065a)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/jira/api/serializers.py' matches configured sensitive codepath pattern 'dojo/jira/**/*.py' and was modified by '' (commit a95a3e0) 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.

@svader0 svader0 added this to the 3.2.0 milestone Jul 24, 2026
The new test class loaded dojo_testdata.json directly, which fails to
install when the locations feature flag is on. Apply the existing
versioned_fixtures decorator so it picks the matching fixture, same as
the neighbouring JIRA test classes.
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