Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap XSS attack on Popovers

I've read here that I can enable HTML in a popover, which can be a potential issue for XSS attacks.

In my case popovers will contain nothing like forms or the like, but only text or links or tables or images.

Can I use them safely without incurring in XSS attacks?

Thank you!

SN

like image 206
Sergio Negri Avatar asked May 12 '15 13:05

Sergio Negri


1 Answers

As long as you're the one providing the html it's safe to use them. It's only unsafe to enable html when the content comes from user input and isn't sanitized beforehand.

like image 164
Tiddo Avatar answered Sep 18 '22 09:09

Tiddo