Menu

#2 allow css styling

open
None
3
2005-04-23
2005-01-13
No

When allowing "style" attributes, KSES automatically
strips out anything with the colon due to the
bad_protocol* functions. Please make it so styling is
still capable when allowed.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I'll think about it. You do realize that both the style tag and
    the style attribute cause security vulnerabilities?

    // Ulf Harnhammar

     
  • Ulf Harnhammar

    Ulf Harnhammar - 2005-04-23
    • priority: 5 --> 3
    • assigned_to: nobody --> metaur
     
  • Genius

    Genius - 2005-12-19

    Logged In: YES
    user_id=1281259

    I too would like to see this feature added, but there's some
    XSS techniques that you would have to be on the guard for,
    such as:

    <XSS STYLE="xss:expression(alert('XSS'))">
    <IMG STYLE="xss:expr/*XSS*/ession(alert('XSS'))">
    <IMG STYLE="behavior: url(http://ha.ckers.org/xss.htc)">
    <IMG STYLE="background:url("javascript:alert('XSS')")">;

    Just a tip if anyone does do this feature, because XSS
    attacks are possible if you allow all style tags. The style
    tag itself, shouldn't really be needed as much as the
    attributes as many elements use them, and they are supposed
    to be better for formating that <FONT> <B> <I> ect...

     

Log in to post a comment.

MongoDB Logo MongoDB