New Sep 19, 2024

This code bypass React protections to XSS. Is there any other malicious way?

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View This code bypass React protections to XSS. Is there any other malicious way? on stackoverflow.com

<td>{props.seller.webpage ? <Button as="a" href={props.seller.webpage} target="_blank">Open</Button> : "N/A"} </td>

because if instead of props.seller.webpage there is

javascript:window.opener.alert('Malicious code is now running :)');window.close()

it works.....

is there any other situation where xss can happen in react? Aparte from dangerouslySetInnerHTML?

Scroll to top