15
Views
1
Comments
XSS on DropdownTags
Application Type
Traditional Web

Hello team,

I'm currently using the DropdownTags component in ODC, and I noticed a security issue. When a value like the following is included:

"//-alert(1);</script>"'><img src=x onerror=alert(JSON.stringify(document))>

it gets rendered in a way that allows JavaScript to execute, which leads to a potential XSS (Cross-Site Scripting) vulnerability.

Has anyone encountered this before, or do you know how to properly sanitize the input to prevent script execution?

2024-10-12 12-11-20
Kerollos Adel
Champion

Input Validation: Validate and sanitize all user inputs before processing

Output Encoding: Properly encode data when rendering it in HTML contexts

 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.