Lucene search
+L

Discuz! "$referer"输出值跨站漏洞

🗓️ 25 Mar 2010 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 26 Views

Discuz! "$referer" output cross-site scripting vulnerabilit

Code

                                                以register.htm 为例:

访问者访问某URL,然后点击“注册”按钮, 该URL被赋值给 $referer 函数,然后 register.htm 会将$referer输出,此时用户打开的注册页面 register.php 中也会包含 $referer 值。

所以,无论该URL是动态页面还是静态页面,无论它是否含有跨站漏洞,只要这个URL地址可以包含跨站代码,跨站就可能发生。


攻击者构造含有特殊代码的URL,以Discuz! 7.0为例,如:http://www.example.com/viewthread.php?tid=<script>alert(/liscker/);</script> ,用户访问该URL,然后点击“注册”按钮,访问register.php,此时发生跨站,执行恶意代码。


attachpay.htm、ec_rate.htm原理与register.htm原理相同。
                              

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

25 Mar 2010 00:00Current
7.1High risk
Vulners AI Score7.1
26