SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |    Help    |   

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com

Sign Up!





Category:  Application (Web Server/CGI)  >  myServer (myserverweb.sourceforge.net) Vendors:  myserverweb.sourceforge.net
MyServer Bugs in math_sum.mscgi May Let Remote Users Execute Arbitrary Code and Conduct Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1010808
SecurityTracker URL:  http://securitytracker.com/id?1010808
CVE Reference:  GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Jul 29 2004
Impact:  Denial of service via network, Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information, User access via network
Exploit Included:  Yes  
Version(s): 0.6.2
Description:  Several vulnerabilities were reported in MyServer in the math_sum.mscgi sample script. A remote user may be able to execute arbitrary code on the target system. A remote user can also conduct cross-site scripting attacks.

dr_insane reported that the 'a' and 'b' parameters are not filtered to remove HTML code from user-supplied input before the input is displayed. A remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the MyServer software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

A demonstration exploit URL is provided:

example: /cgi-bin/math_sum.mscgi?a=[code]&b=[code]

It is also reported that a remote user can supply a long, specially crafted input value to either variable to trigger a buffer overflow. The report did not indicate whether remote code execution was possible or not.

A demonstration exploit is provided:

/cgi-bin/math_sum.mscgi?a=[AAA...x86...AAA]

It is also reported that a remote user can request the following URL to cause the target web service to crash:

/cgi-bin/math_sum.mscgi?a=<script>alert(document.cookie) </script>&b=

The original advisory is available at:

http://members.lycos.co.uk/r34ct/main/MyServer_0.6.2.txt

Impact:  A remote user may be able to execute arbitrary code on the target system with the privileges of the target web service [however, code execution was not confirmed in the report].

A remote user can cause the target web service to crash.

A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the MyServer software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

Solution:  No solution was available at the time of this entry.

As a workaround, the report indicates that you can remove the sample scripts if they are not needed.

Vendor URL:  www.myserverproject.net/ (Links to External Site)
Cause:  Boundary error, Exception handling error, Input validation error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Date:  Thu, 29 Jul 2004 13:12:52 -0400
Subject:  http://members.lycos.co.uk/r34ct/main/MyServer_0.6.2.txt

 

http://members.lycos.co.uk/r34ct/main/MyServer_0.6.2.txt

++++++++++++++++++++++++++++++++    www.r34ct.tk  ++++++++++++++++++++++++++++++++

                                ______   _     _                       _
                               (_____ \ | |   (_)          _      _   | |
  _ _ _  _ _ _  _ _ _     ____  _____) )| |_____   ____  _| |_  _| |_ | |  _
| | | || | | || | | |   / ___)(_____ ( |_____  | / ___)(_   _)(_   _)| |_/ )
| | | || | | || | | |_ | |     _____) )      | |( (___   | |_  _| |_ |  _ (
  \___/  \___/  \___/(_)|_|    (______/       |_| \____)   \__)(_)\__)|_| \_)


++++++++++++++++++++++++++++++++    www.r34ct.tk  ++++++++++++++++++++++++++++++++





                                  Security Advisory



Advisory name : MyServer 0.6.2 math_sum.mscgi multiple vulnerabilities
Release date : 29/07/2004
Application : MyServer 0.6.2
Platform : Windows (all)
Severity : medium
Author: dr_insane , dr_insane@pathfinder.gr



Description:
MyServer is a free and easy to configure web server. MyServer is licensed under the GNU 
General Public License
(GPL).MyServer is in continuous development and new features will be present in future 
releases. It is available
for windows and linux platforms. MyServer's principal goal is to create a free and simple 
powerful server to allow
everyone to transform his home PC in a server and be you own webmaster with few clicks and 
share information easily
with all the world.

Some vulnerabilities have been identified in math_sum.mscgi that may allow a malicious 
user to conduct cross
site scripting attacks or cause a buffer overflow.


Issue 1: math_sum.mscgi cross site scripting attacks

Input passed to parameters "a" and "b" in math_sum.mscgi isn't properly sanitised
before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of a vulnerable site. example: /cgi-bin/math_sum.mscgi?a=[code]&b=[code] Issue 2: math_sum.mscgi buffer overflow A buffer overflow has been found in MyServer which can be exploited to compromise a vulnerable system. The vulnerability is caused due to boundary errors in "math_sum.mscgi". These can be exploited by supplying overly long, specially crafted input to either the "a" or "b" variables, which re
sults in a buffer overflow. Example: /cgi-bin/math_sum.mscgi?a=[AAA...x86...AAA] Issue3: math_sum.mscgi Denial of service attack math_sum.mscgi can be exploited to crash to the server. example: /cgi-bin/math_sum.mscgi?a=<script>alert(document.cookie)</script>&b= Workaround: Remove the sample scripts if you don't need them. Credit: Dr_insane Http://members.lycos.co.uk/r34ct/ Feedback Please send your comments to: dr_insane@pathfinder.gr


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2004, SecurityGlobal.net LLC