Importers: Force tags to lowercase#11221
Conversation
DryRun Security SummaryThe code change in the Expand for full summarySummary: The code change in the This change is a positive improvement from an application security perspective, as it ensures that the tags are standardized and consistent, which can help with the organization and management of findings. Ensuring that all tags are in lowercase can help prevent issues related to case-sensitivity, such as duplicate tags or difficulty in searching and filtering findings. Additionally, the conversion to lowercase can help mitigate potential security issues related to case-sensitive input handling, making the application more robust against potential attacks that attempt to exploit case-sensitive vulnerabilities. Files Changed:
Code AnalysisWe ran Riskiness🟢 Risk threshold not exceeded. |
When adding tags on a model object through the UI or API, the tag is forced to lowercase. Here is an example of the finding model with this requirement:
django-DefectDojo/dojo/models.py
Line 2571 in fafe5c3
The issue is that when doing imports, something is bypassed in the way that tags are being added to the model. They are being added like any other many to may relationship, but the
force_lowercaseflag is not being respected for some reason. Instead, we can just force the tags to be lowercased ourselves when the importer processes the tags[sc-8280]