Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Do you whitelist or blacklist utf-8?
- Date: Thu, 24 Feb 2011 11:52:29 +0900
- From: Edmund Edgar <lists@example.com>
- Subject: Re: [tlug] Do you whitelist or blacklist utf-8?
- References: <4D639689.1010302@example.com> <4D63EFBC.1020900@example.com> <AANLkTik6yyhJ-gz+NJP2yU+08ipYLaZtwZ39pn9F_b97@example.com> <8762sanqad.fsf@example.com>
On 24 February 2011 11:02, Stephen J. Turnbull <stephen@example.com> wrote: > It's really not clear to me what Dave is worried about. XSS > vulnerabilities are 100% about untrusted *ML (mostly HTML, but now > many browsers can handle SVG and even generic XML). Filter "<" and > you're done. No meta tags, no script tags, no a tags, no img tags, no > link tags, have I missed any? doesn't matter, there are no tags at all > here! Just in case anyone gets the wrong from what Stephen just said, bear in mind that the issue isn't whether someone manages to "<" input through your filter, it's whether they manage to get their HTML in between one of your "<" and ">"s. (Or even just after a "<", because some browsers will close your tags for you if they think you forgot...) For example, if you're letting people input a URL which you then display as a link, they can create all kinds of mischief by putting interesting stuff in the URL, which is going to end up between the tags in your anchor tag. See this to get an idea of some of the potential mischief : http://ha.ckers.org/xss.html ...and this for a good explanation of what you should do about it. http://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet -- Edmund Edgar Founder, KK Social Minds Educational Technology for the Web and Virtual Worlds ed@example.com +81 090 3912 3380 Skype: edmundedgar Second Life: Edmund Earp Linked In: edmundedgar Twitter: @edmundedgar http://www.socialminds.jp
- Follow-Ups:
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Stephen J. Turnbull
- References:
- [tlug] Do you whitelist or blacklist utf-8?
- From: Dave M G
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Shmuel Fomberg
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Josh Glover
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Do you whitelist or blacklist utf-8?
- Next by Date: Re: [tlug] Do you whitelist or blacklist utf-8?
- Previous by thread: Re: [tlug] Do you whitelist or blacklist utf-8?
- Next by thread: Re: [tlug] Do you whitelist or blacklist utf-8?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links