Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:22226
HistoryJul 27, 2009 - 12:00 a.m.

CodeIgniter Global XSS Filtering Bypass Vulnerability

2009-07-2700:00:00
vulners.com
61

========================================

CodeIgniter Global XSS Filtering Bypass Vulnerability

========================================

Discovered by:
Aung Khant, YGN Ethical Hacker Group, Myanmar
http://yehg.net/ ~ believe in full disclosure

Product : CodeIgniter < http://www.codeigniter.com>
Product Description : Open-source PHP Framework
Pen-Tested Version : 1.5.2
Vulnerability : User-Agent injection
Risk : Medium
Threat : XSS, Log File Tampering

Advisory URL:
http://yehg.net/lab/pr0js/view.php/CodeIgniter&#37;20Global&#37;20XSS&#37;20Filtering&#37;20Bypass&#37;20Vulnerability.pdf

Description:
$CI->input->user_agent() fails to check the validity of user-agent type.
It simply extracts from $_SERVER array without checking whether it is
bad string injection or not. In this case, we can spoof user agent
string of our browser with our arbitrary commands that can bypass
stronger CodeIgniter Security class even if
$config['global_xss_filtering'] = TRUE;. Thus we can execute XSS on
the fly.