Skip to content

Release 2.52.0: Merge Bugfix into Dev#13601

Merged
rossops merged 18 commits intodevfrom
bugfix
Nov 3, 2025
Merged

Release 2.52.0: Merge Bugfix into Dev#13601
rossops merged 18 commits intodevfrom
bugfix

Conversation

@rossops
Copy link
Collaborator

@rossops rossops commented Nov 3, 2025

No description provided.

DefectDojo release bot and others added 16 commits October 27, 2025 16:57
Co-authored-by: Valentijn Scholten <valentijn.scholten@iodigital.com>
….52.0-dev

Release: Merge back 2.51.3 into bugfix from: master-into-bugfix/2.51.3-2.52.0-dev
…ully (#13523)

* 🎉 add middleware to handle social auth provider unavailability gracefully

* -

* -

* update according to recommendation

* add unittest

* update

* update on unittest

* add integrationtest

* update unittest description

* udpate

* udpate

* fix unittest

* add authforbidden
* add servicenow docs

* update connectors docs

* Update docs/content/en/share_your_findings/integrations.md

Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>

* Update docs/content/en/share_your_findings/integrations_toolreference.md

Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>

---------

Co-authored-by: Paul Osinski <paul.m.osinski@gmail.com>
Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
* Added handling for abnormal wazuh severity values

* Added unit tests for wazuh abnormal severities

* Fixing ruff issue
* priority engine docs

* Update docs/content/en/working_with_findings/priority_adjustments.md

Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>

* Update docs/content/en/working_with_findings/priority_adjustments.md

Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>

---------

Co-authored-by: Paul Osinski <paul.m.osinski@gmail.com>
Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
* 🐛 Robustify create_user to handle None value

* fix

* update

* update according to review
@github-actions github-actions bot added settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR apiv2 docs unittests ui parser helm conflicts-detected labels Nov 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@dryrunsecurity
Copy link

dryrunsecurity bot commented Nov 3, 2025

DryRun Security

🔴 Risk threshold exceeded.

This pull request modifies several sensitive files (dojo/middleware.py, dojo/pipeline.py, and dojo/templates/dojo/finding_related_row.html) triggering configured codepath alerts, and also changes settings in dojo/settings/settings.dist.py that expose a potential account takeover risk via misconfiguration of DD_SOCIAL_AUTH_CREATE_USER_MAPPING (using non-unique/unverified attributes like fullname). Review these changes carefully and ensure sensitive paths and allowed authors are configured in .dryrunsecurity.yaml and that social-auth mapping uses unique, verified attributes (e.g., email) to prevent account linkage.

🔴 Configured Codepaths Edit in dojo/middleware.py
Vulnerability Configured Codepaths Edit
Description Sensitive edits detected for this file. Sensitive file paths and allowed authors can be configured in .dryrunsecurity.yaml.
🔴 Configured Codepaths Edit in dojo/templates/dojo/finding_related_row.html
Vulnerability Configured Codepaths Edit
Description Sensitive edits detected for this file. Sensitive file paths and allowed authors can be configured in .dryrunsecurity.yaml.
🔴 Configured Codepaths Edit in dojo/middleware.py
Vulnerability Configured Codepaths Edit
Description Sensitive edits detected for this file. Sensitive file paths and allowed authors can be configured in .dryrunsecurity.yaml.
🔴 Configured Codepaths Edit in dojo/pipeline.py
Vulnerability Configured Codepaths Edit
Description Sensitive edits detected for this file. Sensitive file paths and allowed authors can be configured in .dryrunsecurity.yaml.
Account Takeover via Social Auth Mapping Misconfiguration in dojo/settings/settings.dist.py
Vulnerability Account Takeover via Social Auth Mapping Misconfiguration
Description The DD_SOCIAL_AUTH_CREATE_USER_MAPPING setting allows an administrator to define which attribute from a social provider (e.g., 'username', 'email', 'fullname') should be used as the local username during user creation or linking. If this setting is configured to use a non-unique or unverified attribute like 'fullname', an attacker can create a social account with a 'fullname' matching a victim's existing local username. When the attacker attempts to log in via social authentication, the system will use the attacker's social 'fullname' as the username, potentially linking their social account to the victim's local account and leading to an account takeover.

DD_FORGOT_USERNAME=(bool, True), # do we show link "I forgot my username" on login screen
DD_SOCIAL_AUTH_SHOW_LOGIN_FORM=(bool, True), # do we show user/pass input
DD_SOCIAL_AUTH_CREATE_USER=(bool, True), # if True creates user at first login
DD_SOCIAL_AUTH_CREATE_USER_MAPPING=(str, "username"), # could also be email or fullname
DD_SOCIAL_LOGIN_AUTO_REDIRECT=(bool, False), # auto-redirect if there is only one social login method
DD_SOCIAL_AUTH_TRAILING_SLASH=(bool, True),
DD_SOCIAL_AUTH_OIDC_AUTH_ENABLED=(bool, False),

We've notified @mtesauro.


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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the helm label Nov 3, 2025
@rossops rossops merged commit 40dca35 into dev Nov 3, 2025
153 checks passed
Maffooch pushed a commit to valentijnscholten/django-DefectDojo that referenced this pull request Feb 16, 2026
Release 2.52.0: Merge Bugfix into Dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apiv2 docs parser settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR ui unittests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants