-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Tag: Update allowed characters for a unified format #12194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
DryRun Security SummaryDefectDojo version 2.46.x implements comprehensive tag validation and sanitization improvements to enhance security by preventing potential injection vulnerabilities and standardizing tag formatting across the application. Expand for full summarySummary: DefectDojo version 2.46.x introduces comprehensive tag formatting changes across multiple components, implementing stricter tag validation and cleaning mechanisms to improve input sanitization and prevent potential security risks. Security Findings:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comments/questions here
Have you considered using |
I did try to take this method, but was stuck on the m2m relationship. Will see what I can do about logging |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request introduces enhanced input validation for tags, focusing on preventing injection attacks and potential security risks, while also recommending careful migration procedures and improved error handling to protect system integrity and data privacy. 💭 Unconfirmed Findings (5)
All finding details can be found in the DryRun Security Dashboard. |
Turns out m2m is not supported by bulk update. I did some research on this, and it turns out that using the
I went with every 100 in case things went slow for some users. This will at least provide some good feedback if needed to manage expectations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, thanks.
I think this is a good idea if Tagulous doesn't already reject random non-printable characters, but I would guess that it rejects such characters already? If not, maybe worth a follow-up PR |
Let's save that for another time 😅 |
Tags do not have consistent behavior between the UI and the API. This is caused by a handful of characters:
To create cohesion, we should no longer allow these characters as they tend to make global searches very tricky/nonfunctional anyways. The PR accomplishes the following
Screenshots:


[sc-10605]