hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Help - Search - Member List - Calendar
Full Version: Smf Size Tag Script Injection Vulnerability
GovernmentSecurity.org > The Archives > Exploit Articles
qcred11
May 6 2004, 02:46 PM
QUOTE


#####################################################

  Advisory Name : SMF SIZE Tag Script Injection Vulnerability
  Release Date : May 3,2004
    Application : Simple Machines
        Test On : SMF 1.0 Beta 5 Public
    Vendor URL : http://www.simplemachines.org/
      Discover : Cheng Peng Su(apple_soup_at_msn.com)
   
#####################################################

Intro:
      The team that has brought you YaBB SE has moved on to develop
  the next evolution in forum software, Simple Machines Forum(SMF).
  They have rebranded themselves under the name Simple Machines.They
  said proudly that "SMF is a next-generation community software package
  and is jam-packed with features, while at the same time having a minimal
  impact on resources."
 
Proof of conecpt:
      SMF doesn't filter scripting code strictly in the [size] tags,
  in other words,they forget to filter ()+ characters.Attacker can use
  the expression() syntax to set an malicious expression on font-size
  attribute.The code below is available.
 
    Just beginning
   
  but if you start complex code,you will know that some characters
  (such as quote,apostrophe and semicolon) are filtered by SMF, but
  I found an available way without quote,apostrophe or semicolon, you
  will know this way from the Exploit below.
 
Exploit:
      First,submit specially content like below
     
  Big Exploit

  '41' in the content means the length of the malicious scripting.
  If the URL of the Topic above is
 
  http://site/index.php?topic=12345.0
 
  Make a link with malicious scripting like this:
 
  http://site/index.php?topic=12345.0&alert('Your cookie:\n'+document.
  cookie)

Solution:
      SMF were notified and there may will be a release of a fix or update
  to resolve these issues. Who knows, maybe they don't care this' bug.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.