[UNIX] PHP fopen() Warning Cross-Site Scripting Vulnerability
From: support@securiteam.comDate: 07/18/02
- Previous message: support@securiteam.com: "[UNIX] Wiki Module PostNuke Cross-Site Scripting Vulnerability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: support@securiteam.com To: list@securiteam.com Date: Thu, 18 Jul 2002 07:31:53 +0200 (CEST)
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -
PHP fopen() Warning Cross-Site Scripting Vulnerability
------------------------------------------------------------------------
SUMMARY
PHP's fopen() function warning output has been found to inadequately
filter out malicious content, this makes it prone to an XSS security
vulnerability.
DETAILS
Systems Affected:
Any PHP interpreter configured to use error output, and to recognize
warnings as errors; system must host a script-allowing user to open
arbitrary file.
Technical Description:
PHP's default configuration is to display error output in the browser. It
is also configured by default to print out warning messages.
A vulnerability in the way fopen()'s warnings are handled may cause a
cross-site scripting vulnerability.
Demo script:
fo-xss.php:
<?php $handle = fopen($xssvar); ?>
If your system is running a default PHP configuration, this script will
return $xssvar unchanged to the user.
NOTE: This sample requires register_globals to be on.
ADDITIONAL INFORMATION
The information has been provided by <mailto:mattmurphy@kc.rr.com>
Matthew Murphy.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: support@securiteam.com: "[UNIX] Wiki Module PostNuke Cross-Site Scripting Vulnerability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- SUMMARY WAS: OT? Philosophical Question on SA responsibilities
... helpful for managers interested in hiring new administrators. ... Would you
go thru the 14,600 messages in root and admin ... If I was a new SA I would if encountering
a security hole, ... I can see some use for the passwd -s part of the crontab script,
... (SunManagers) - Re: Clarification-Win2k Netstat sockets interpretation
... snip.. ... Before I could manually download every security upate and
servicepack from MS.com but now...they send you a bit of Cop-code that fails to run unless ALL defences
are down ... Are you sure the script from ntsvcfg is benign in addition to being useful?
... You are absolutely correct there HAL, er ah, Sebastian. ... (alt.computer.security) - [NT] Flaw in Windows Script Engine Could Allow Code Execution
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... The Windows Script Engine
provides Windows operating systems with the ... blocked by Outlook Express 6.0 and Outlook
2002 in their default ... (Securiteam) - Re: BUG with RES/SCRIPT/XP-SP2
... I consider JavaScript (known to security people as JavaVirus) as one of the Really
Top ... to have a bad script cause damage to my machine. ... This security feature
is called the "Local Machine Zone Lockdown". ... Tags, and the CDHtmlDialog class
in this forum, and got no response. ... (microsoft.public.vc.mfc) - Re: Browser security was Re: [Full-Disclosure] MDKSA-2004:021 - Updated mozilla packages fix multipl
... > through three or more configuration screens for a temporary site ... >
requiring script and forgetting to turn it back off at least ... aim of IE's security
zones. ... (Full-Disclosure)