[UNIX] FAQmanager File Reading Vulnerability

From: support@securiteam.com
Date: 01/09/02


From: support@securiteam.com
To: list@securiteam.com
Date: Wed,  9 Jan 2002 21:14:45 +0100 (CET)

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.
- - - - - - - - -

  FAQmanager File Reading Vulnerability
------------------------------------------------------------------------

SUMMARY

 <http://www.fourteenminutes.com/code/faqmanager/> FAQmanager is a simple
perl script that allows you to easily set up and maintain an FAQ web site
(Frequently Asked Questions). A security vulnerability in the product
allows attackers to read any world readable file on the server.

DETAILS

Vulnerable systems:
FAQmanager versions prior to 2.2.6

Immune systems:
FAQmanager version 2.2.6 (partial fix)

FAQmanager can be used to read a file the server has access to.

Example:
http://host/cgi-bin/faqmanager.cgi?toc=/etc/passwd%00
This will show the system's /etc/passwd file.

Solution:
A solution would be to replace the untainted routine in the script with
this slightly modified one that filters out the null byte:

sub untaint
{
  return "" if (!$_[0]);
 
  my $taint = $_[0];
 
  $taint =~ s/[\|\/]//g;
  $taint =~ s/\0//gii;
  $taint =~ /^[\<\+\>]*(.*)$/gi;
  return $1; # _not_ return $taint
}

ADDITIONAL INFORMATION

The information has been provided by <mailto:nu_omega_tau@altavista.com>
Nu Omega Tau.

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

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.



Relevant Pages

  • [NEWS] SalesCart Database Storage Insecurity
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... struct sockaddr_in sin; ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NT] Long URL Crashes My Web Server
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... vulnerability in the product allows remote attackers to crash the server. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NEWS] Cross Site Scripting Vulnerability in Microsoft.com
    ... 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 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. ...
    (Securiteam)
  • [NT] ScriptEase MiniWeb Server DoS
    ... 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 ScriptEase MiniWeb Server was written entirely in ScriptEase, ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • [NEWS] Cross Site Scripting Vulnerability Found in Apple Web Site
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Beyond Security would like to welcome Tiscali World Online ... 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. ...
    (Securiteam)