Re: [BUG] gitweb: XSS vulnerability of RSS feed
- From
Jakub Narębski <jnareb@gmail.com>
- Date
- Nov 13, 2012, 15:57 UTC
- Message-ID
- <CANQwDwfES_hpnPOz=KTb-g3mxa8YZzzcMaj+ePj3bjgPx4DHdg@mail.gmail.com>
- In-Reply-To
- <CAO54GHCzeWv41Bu5By0JOzbBHGuzXV=krdDr0U=QsMBun7PF7A@mail.gmail.com>
On Tue, Nov 13, 2012 at 4:45 PM, Kevin <ikke@ikke.info> wrote:
Show 8 quoted lines
> The problem with input filtering is that you can only filter for one > output scenario. What if the the input is going to be output in a wiki > like environment, or to pdf, or whatever? Then you have to unescape > the data again, and maybe apply filtering/escaping for those > environments. > > You only know how to escape data when you are going to output it, so > then is the the best moment to escape it.
Also there are so many ways to evade XSS filtering
https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
If you can and should escape data (like in our case), it cannot not work; not possible to evade it.
-- Jakub Narebski