Skip to content

[Precogs Alert] Cross-Site Scripting (XSS) detected (CWE-79, Risk: High)#23

Open
sameer6pre wants to merge 1 commit intomainfrom
Precogs-fix-6cmsbvkk
Open

[Precogs Alert] Cross-Site Scripting (XSS) detected (CWE-79, Risk: High)#23
sameer6pre wants to merge 1 commit intomainfrom
Precogs-fix-6cmsbvkk

Conversation

@sameer6pre
Copy link
Owner

Vulnerability Details

  • File Path: cloned_repos/orbit-app/orbit-app/src/components/CommentsSection.jsx
  • Vulnerability Type: Cross-Site Scripting (XSS)
  • Risk Level: High

Explanation:
The code uses the 'dangerouslySetInnerHTML' property to inject HTML content into the DOM. While the 'sanitizeHTML' function is used to sanitize the input, its implementation is not shown, and if it is not robust against all forms of XSS attacks, malicious scripts could still be executed.

Please review and address the issue accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant