[UNIX] SWS Administrative Access Vulnerability

From: support@securiteam.com
Date: 04/14/02


From: support@securiteam.com
To: list@securiteam.com
Date: Sun, 14 Apr 2002 21:53:58 +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.
- - - - - - - - -

  SWS Administrative Access Vulnerability
------------------------------------------------------------------------

SUMMARY

SWS (StepWeb Search Engine) is a search engine downloadable at
<http://www.stepweb.com> http://www.stepweb.com, that can find one or more
words in a flat file database where URLs have been and then prints the
results to the screen in an HTML format. A security vulnerability in the
product allows remote attackers to discover the administrative password
for the product by accessing a URL, further by knowing the password it is
possible to manage the user database, and view sensitive information
stored in the log files.

DETAILS

Vulnerable systems:
SWS version 2.5

SWS comes with an administration page that allows one to add/del addresses
to/from the database and allows one to view the log file that stores all
searched items. This page is known as admin.html can normally be found in
the same dir as the search engine itself. This page is directed to a
password protected cgi script known as manager.pl. Not only does the
admin.html point to the manager.pl, but it also stores the password in the
html links as shown below.

http://www.mysite.com/cgi-bin/sws/manager.pl?add&pass=PassWord
http://www.mysite.com/cgi-bin/sws/manager.pl?del&pass=PassWord
http://www.mysite.com/cgi-bin/sws/manager.pl?log&pass=PassWord

Exploit:
If one was to find the location of the "admin.html" file, that person
could easily add addresses to the search database or view the log file
that stores all searches made by users of the engine. Note though that
deletion of addresses cannot be made, for they are individually password
protected and passwords are stored in an inaccessible .dat file.

Example:
http://www.mysite.com/sws/admin.html and click the links. The hard coded
links will do the rest.

Fix:
Our advice is to place the admin.html in a directory protected by
htaccess or rewrite the HTML so that the user must input the password
instead of click on it.

ADDITIONAL INFORMATION

The information has been provided by <mailto:brainrawt@hotmail.com>
BrainRawt.

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

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

  • SV: services running in windows domain (winXP clients)
    ... effectiveness of logon scripts as a security check/enforcement mechanism. ... FileName specifies a new database, ... Specifies the path and file name of the log file for the process. ...
    (Focus-Microsoft)
  • Re: MS Security Configuration Tool Set (SCTS)
    ... Security or Edit Security to see the current setting and the proposed new ... It looks like if and when the policy template is actually applied, ... > The log file goes into %systemroot%\security\logs by default. ... >>I think these tools will only let you compare a template with the ...
    (microsoft.public.security)
  • Re: Remove GP from machine that has been removed from AD
    ... Location of the log file - %windir%\security\logs ... Execute a gpupdate /force, verify you get the 1202 event, and post the log ... CCNA, MCSE 2000/2003 + Security ... My machine took the normal> Group Policy. ...
    (microsoft.public.windows.group_policy)
  • Re: AspErrorsToNTLog no longer works in IIS6
    ... Am I to assume IIS6 no longer offers a way to audit VBScript errors? ... >>when the security log is full has any relevance. ... Is event log performance significantly ... > log instead of the normal log file) was flawed from a security perspective, ...
    (microsoft.public.inetserver.iis)
  • RE: XP2 Setup Error
    ... The error in the log file "Failed To Enable SE_BACKUP_PRIVILEGE" is related to the permissions for the currently logged in user. ... It may be a good idea to reset the security settings back to the defaults. ... Right-click security configuration and analysis and choose Open Database. ...
    (microsoft.public.windowsxp.setup_deployment)