Secunia SmallBusiness
Overview
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading

Secunia Advisory SA34520

MapServer Multiple Vulnerabilities
Secunia Advisory SA34520
Secunia VIM 4.0 - Free Trial
Release Date 2009-03-31
Last Update 2009-09-03
   
Popularity 2,709 views
Comments 0 comments

Criticality level Moderately criticalModerately critical
Impact Security Bypass
Manipulation of data
Exposure of sensitive information
DoS
System access
Where From remote
Authentication level This information is available to Secunia VIM customers
   
Report reliability This information is available to Secunia VIM customers
Solution Status Vendor Patch
   
Systems affected This information is available to Secunia VIM customers
Approve distribution This information is available to Secunia VIM customers
   
Software:
MapServer 4.x
MapServer 5.x

Secunia CVSS Score This information is available to Secunia VIM Customers
CVE Reference(s) CVE-2009-0839 CVSS score available to Secunia VIM customers
CVE-2009-0840 CVSS score available to Secunia VIM customers
CVE-2009-0841 CVSS score available to Secunia VIM customers
CVE-2009-0842 CVSS score available to Secunia VIM customers
CVE-2009-0843 CVSS score available to Secunia VIM customers
CVE-2009-1176 CVSS score available to Secunia VIM customers
CVE-2009-1177 CVSS score available to Secunia VIM customers
CVE-2009-2281 CVSS score available to Secunia VIM customers
  

Description

Some vulnerabilities and a weakness have been reported in MapServer, which can be exploited by malicious people to disclose potentially sensitive information, bypass certain security restrictions, cause a DoS (Denial of Service), and potentially to compromise a vulnerable system.

1) A boundary error in the "mapserv" CGI program can be exploited to cause a stack-based buffer overflow e.g. via a specially crafted map file or potentially via specially crafted requests containing an overly long string (128 bytes) passed via the "id" parameter.

Successful exploitation may allow execution of arbitrary code.

2) An integer overflow error exists when processing the "Content-Length" header within the "mapserv" CGI program. This can be exploited to cause an out-of-bounds array access and corrupt memory via a specially crafted POST request.

Successful exploitation requires a web server that does not sanitise the "Content-Length" header.

3) Input passed to the "id" parameter to the "mapserv" CGI program is not properly sanitised before being used. This can be exploited to write files to arbitrary locations via directory traversal attacks.

4) An error in the "mapserv" CGI program in the processing of local .map files can be exploited to disclose potentially sensitive information in arbitrary .map files by specifying a full path via the "map" parameter.

5) An error in the "mapserv" CGI program in the processing of local .map files can be exploited to disclose the existence of local files via the "queryfile" parameter.

6) Boundary errors within the "msGenerateImages()" function in maptemplate.c can potentially be exploited to cause stack-based buffer overflows via a specially crafted map file.

The vulnerabilities and the weakness are reported in version prior to 5.2.2 and 4.10.4.


Solution
Update to version 5.2.3 or 4.10.5
Further details available to Secunia VIM customers

Provided and/or discovered by
1 - 5) Joe Testa, Positron Security

Additional information about the incorrect fix for vulnerability #2 provided by Nico Golde, Debian.

Changelog
Further details available to Secunia VIM customers

Original Advisory
MapServer:
http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html
http://trac.osgeo.org/mapserver/browser/tags/rel-5-2-3/mapserver/HISTORY.TXT
http://trac.osgeo.org/mapserver/browser/tags/rel-4-10-5/mapserver/HISTORY.TXT

Positron Security:
http://www.positronsecurity.com/advisories/2009-000.html

Debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535340

Deep Links
Links available to Secunia VIM customers


Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: MapServer Multiple Vulnerabilities
 
No posts yet

-

You must be logged in to post a comment.




 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2013 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability