-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Jira Template: Do not HTML encode before shipping to jira #11640
base: dev
Are you sure you want to change the base?
Conversation
DryRun Security SummaryThe pull request enhances the security and readability of the Jira integration in Defect Dojo by adding the Expand for full summarySummary: The code changes in this pull request focus on improving the security and readability of the Jira integration feature in the Defect Dojo application. The key changes include:
While the changes are generally positive from a security perspective, the use of the Files Changed:
Code AnalysisWe ran |
1 similar comment
DryRun Security SummaryThe pull request enhances the security and readability of the Jira integration in Defect Dojo by adding the Expand for full summarySummary: The code changes in this pull request focus on improving the security and readability of the Jira integration feature in the Defect Dojo application. The key changes include:
While the changes are generally positive from a security perspective, the use of the Files Changed:
Code AnalysisWe ran |
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
In cases when a finding has
"
(very prevalent with JSON blobs) the final body submitted to jira looks something like this:The reason for this is because of the HTML escaping from the
render_to_string
is tampering with the contents of the finding. To mitigate this, applying thesafe
template tag to mark the contents of the finding as "not to be touched" allows for the contents to be shipped to jira without issue. Thissafe
template tag can be a scary thing as it may welcome some malicious opportunities if used irresponsibly, but as we are shipping the contents straight to jira, we are offloading the final contents to jira.[sc-9870]