Re: STG Security Advisory: [SSA-20041122-12] Zwiki XSS vulnerability

From: Chris Withers (chris_at_simplistix.co.uk)
Date: 11/26/04

  • Next message: Cyrille Barthelemy: "phpCMS <= 1.2.1 Xss Vulnerability, Information disclosure"
    Date: Fri, 26 Nov 2004 09:25:18 +0000
    To: advisory@stgsecurity.com
    
    

    advisory@stgsecurity.com wrote:

    > proof of concept
    >
    > http://[victim]/<img src=javascript:alert('hi')>

    Just to note, this bug only affects ZWiki version after Zwiki 0.10.0rc1.

    Also, the fix is pretty trivial, apply the following patch to
    standard_error_message in all ZWiki folders (and on disk, so you don't
    have to do it again ;-):

    --- standard_error_message.dtml.original Fri Nov 26 09:17:22 2004
    +++ standard_error_message.dtml Fri Nov 26 09:17:55 2004
    @@ -29,7 +29,7 @@
        <body>
          <p>
            I could not find any likely page matching
    - "<b><dtml-var "here.urlunquote(searchexpr)"></b>"
    + "<b><dtml-var "here.urlunquote(searchexpr)" html_quote></b>"
          </p>
          <p>
            Click here to

    Sadly, I see I broke the bug tracker, 'cos it's also a ZWiki, and has
    MUCH bigger problems than the above :-S (execution of any DTML in the
    context of (hopefully!) the user that created it along with a total lack
    of html quoting in the page :-(

    In short, only use ZWiki if you know what you're doing, and preferably
    only if it's not anonymously accessible...

    *sigh*

    Chris

    -- 
    Simplistix - Content Management, Zope & Python Consulting
                - http://www.simplistix.co.uk
    

  • Next message: Cyrille Barthelemy: "phpCMS <= 1.2.1 Xss Vulnerability, Information disclosure"

    Relevant Pages

    • Re: 2.6.27-rc5-mm1
      ... See the `hot-fixes' directory for any important updates to this patchset. ... If you hit a bug in -mm and it is not obvious which patch caused it, ... ALSA fix ...
      (Linux-Kernel)
    • 2.6.27-rc1-mm1
      ... See the `hot-fixes' directory for any important updates to this patchset. ... If you hit a bug in -mm and it is not obvious which patch caused it, ... CIFS fix ...
      (Linux-Kernel)
    • Re: thoughts on kernel security issues
      ... having two independent patches that fix them is STILL better. ... Take it from me - I've been reviewing patches for _way_ too long. ... have a clue ("try reverting that one patch") or you can do things like ... Which is why lots of small patches usually have _different_ bug behaviour ...
      (Linux-Kernel)
    • 2.6.22-rc4-mm2
      ... trees were repulled, several bad patches were dropped, a few were fixed. ... If you hit a bug in -mm and it is not obvious which patch caused it, ... wireless sparse fix ...
      (Linux-Kernel)
    • 2.6.17-rc4-mm3
      ... If you hit a bug in -mm and it is not obvious which patch caused it, ... Driver tree updates ... Fix reject in git-nfs.patch. ...
      (Linux-Kernel)