I keep forgetting to mention this, but I want to make sure I write it down *somewhere*...
One of the best reasons for developing a site in AxKit XSP is that it totally eradicates XSS bugs. No need to check what you output - it doesn't matter - there's no way to bypass the strict output checking that XML gives you.
This is all TRACE not withstanding
The other thing I found out about TRACE is that it totally bypasses any Apache handler installed (mod_perl or otherwise). This seems like a bug to me - if I could handle TRACE in axkit I could disable it very easily. Bah.
I hate to be pessimistic but ... (Score:1)
Ilya Martynov (http://martynov.org/ [martynov.org])
Re:I hate to be pessimistic but ... (Score:2)
Re:I hate to be pessimistic but ... (Score:1)
Ilya Martynov (http://martynov.org/ [martynov.org])
Re:I hate to be pessimistic but ... (Score:2)
Mind explaining how this works? I still don't know enough about XSS, but it's a technique that has fascinated me ever since I watched Jeffrey Baker demo it at the Open Source Conference 2.5 years ago.
Re:I hate to be pessimistic but ... (Score:1)
Attacker can pass as value of "cookie" parameter something like "\n\n<javascript>....</javascript>" so this CGI ends up printing:
See? Since arbitrar
Ilya Martynov (http://martynov.org/ [martynov.org])
Re:I hate to be pessimistic but ... (Score:2)
$r->headers_out->add()or the Cookie taglib (which uses headers_out underneath). Creating cookies with the cookie taglib automatically encodes and decodes them.Re:I hate to be pessimistic but ... (Score:2)
Most interesting.
Re:I hate to be pessimistic but ... (Score:2)
I don't think it's limited to one call, but even if it is you always have Good Ol'
eval()there so it don't make much of a diff I'm afraid.-- Robin Berjon [berjon.com]
Re:I hate to be pessimistic but ... (Score:2)
Still, I think overall that means you've got a lot less coding to do with AxKit than with other (inferior
Re:I hate to be pessimistic but ... (Score:2)
AxKit has the pro re XSS that it will be more likely to blow up given some treacherous charset than other solutions will be, especially if you charconv from UTF-8 to Latin-X at the end. Apart from that, it's prolly just as open as anything that deals with user-provided content.
I'm not sure there's much to protecting the Wiki. A Wiki is, by definition, well, XSS enabled :) It pretty much works based on trusting other people. At any rate if you want to protect against javascript URLs, I'd check on
!/-- Robin Berjon [berjon.com]
Re:I hate to be pessimistic but ... (Score:1)
Very, very, very wrong. Security module of client side scripting is that there is single trust zone per one hostname. If you have, say, properly coded ecommerce shop and wiki with XSS bugs sitting on same domain than ecommerce shop is also vulnerable. Attacker needs only to lure ecommerce shop user on part of wiki with XSS bug and, bummer, user's auth coookie is known to "bad" guy.
Ilya Martynov (http://martynov.org/ [martynov.org])
Re:I hate to be pessimistic but ... (Score:2)
Oh yeah, that I know. I was thinking about axkit.org. And I must say I haven't seen many Wiki that were on the same domain as an e-commerce site, it would be quite dangerous imho. There are so many ways to get JS code to run (URL, cookie-munging, on* event handlers, redirects, script elements...).
-- Robin Berjon [berjon.com]
Re:I hate to be pessimistic but ... (Score:1)
Ilya Martynov (http://martynov.org/ [martynov.org])
Re:I hate to be pessimistic but ... (Score:2)
Depends on what kind of security you want. For axkit.org's Wiki I'd allow everything, including javascript:, so that we can have bookmarklets in there. For a site that has sensitive information I wouldn't use a Wiki.
-- Robin Berjon [berjon.com]
Re:I hate to be pessimistic but ... (Score:2)
Javascript is just too dangerous.
There's probably still bugs in the wiki in that it allows XML input, so you may be able to sneak something by that way, but hopefully the XSLT should disallow anything but known tags (and filter attributes sanely).
Re:I hate to be pessimistic but ... (Score:2)
Re:I hate to be pessimistic but ... (Score:2)
Re:I hate to be pessimistic but ... (Score:2)