German | English
n.runs AG - Company
 
 
n.runs AG
Services by n.runs
IT INFRASTRUCTURE
IT SECURITY
IT BUSINESS CONSULTING

n.runs AG
Nassauer Straße 60
D-61440 Oberursel
Phone: +49 (0) 6171/699-0
Fax: +49 (0) 6171/699-199
E-mail: contact@nruns.com
Imprint

n.runs-SA-2003.001 Cyrus IMSP - Buffer overflow in address book handling

n.runs GmbH
http://www.nruns.com
n.runs-SA-2003.001

security(at)nruns.com
28-Oct-2003

* * *

Vendor: Andrew Systems Group, Carnegie Mellon University
Product: Cyrus IMSP
Vulnerability: Buffer overflow in address book handling
Risk: HIGH

Vendor communication:

Overview:
Cyrus IMSP is a implementation of the IMSP protocol [2].

"The Internet Message Support Protocol (IMSP) is designed to support the provision of mail in a medium to large scale operation. It is intended to be used as a companion to the IMAP4 protocol [IMAP4], providing services which are either outside the scope of mail access or which pertain to environments which must run more than one IMAP4 server in the same mail domain. The services that IMSP provides are extended mailbox management, configuration options, and address books."

There is a remotely exploitable buffer overflow in the Cyrus IMSPd. The vulnerability can be triggered before authentication. The IMSP daemon is required to run as root.

Description:
In the function abook_dbname, a sprintf() call takes place. The function takes two char pointers (dbname and name), which are later used in the sprintf() call:

  sprintf(dbname, abookdb, ownerlen, name, name);

abookdb is defined as

  static char abookdb[] = "user/%.*s/abook.%s";

Several functions in the code use abook_dbname() and supply a local char buffer of 256 bytes as first argument to the function. Since the second argument "name" is controlled by the user in serveral protocol messages [2], a remotely exploitable buffer overflow is created.

Example:
  nruns@testbox:~$ ./CyRootIMSP.pl localhost 406
  [...]
  Found suitable return address 0xBFFF95D3
  +++ Exploitation successful: uid=0(root) gid=0(root)
  groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)


Solution:
The updated software versions are available from http://cyrusimap.web.cmu.edu.

Credit:
Bug found by Felix Lindner and Michael Guenther of n.runs GmbH.
Additional credits to Steffen Weinreich for support during research.

Greets to Halvar, Johnny Cyberpunk, all@EEye

References:
[1] http://asg.web.cmu.edu/cyrus/download/
[2] http://asg.web.cmu.edu/cyrus/rfc/imsp.html


Unaltered electronic reproduction of this advisory is permitted. For all other reproduction or publication, in printing or otherwise, contact security@nruns.com for permission. Use of the advisory constitutes acceptance for use in an "as is" condition. All warranties are excluded. In no event shall n.runs be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if n.runs has been advised of the possibility of such damages.

Copyright 2003 n.runs GmbH. All rights reserved. Terms of apply.
Penetration Test
 

23. January 2012:
Corporate News
+++ Vitec Holdings GmbH has acquired a majority stake in n.runs AG (75% plus 1 of the outstanding shares of n.runs AG)


* * *



28. December 2011:
Security Advisory
+++ : n.runs-SA-2011.004 - web programming languages and platforms - DoS through hash table


* * *



09. November 2011:
Corporate News
+++Addition to the n.runs' Managing Board Stefan Tewes strengthens the n.runs Managing Board/Vorstand


* * *



02. November 2011:
Corporate News
+++ Holger Follmann completes Supervisory Board of the n.runs AG


* * *



13. October 2011:
Corporate News
+++Revenue of EUR 2,18 Mio achieved in first half year (1st half-year 2010:EUR 2,94 Mio)
+++Modification of the outlook for the business year 2011 based on rescheduled projects. -
Projected 2011 revenue reduced but a profitable result for 2011 are expected.



* * *



29. Juli 2011:
Security Advisory
n.runs-SA-2011.001 - Citrix XenApp / XenDesktop XML Service Stack-Based Buffer Overflow

n.runs-SA-2011.002 - Citrix XenApp / XenDesktop XML Service Heap Corruption

* * *



June 9, 2011:
Corporate News
Change in Supervisory Board
+++ Chairman of the Supervisory Board Günther Paul Löw has resigned from his position
+++ Holger Follmann proposed for the Supervisory Board

* * *


May 27, 2011:
Corporate News
Capital Increase successfully placed
+++Share capital increased by 7 % to 1.425.000 Euro
+++Gross issuing proceeds of 0.3 Mio Euro serves for the expansion of new business area “n.sure”

* * *


November 26, 2010:
Security Advisory
n.runs-SA-2010.003 - HP LaserJet MFP Device PJL Directory Traversal

* * *


November 08, 2010:
Sucess Story
Germanwings successfully tested their web applications with the n.sure service by n.runs AG

* * *


September 20, 2010:
Security Advisory
n.runs-SA-2010.001 - Alcatel-Lucent - unauthenticated administrative access to CTI CCA Server

* * *


September 20, 2010:
Security Advisory
n.runs-SA-2010.002 - Alcatel-Lucent - arbitrary code execution at OmniVista 4760

* * *
August 11, 2010:
Corporate News
n.runs publishes the half-year report 2010 which confirms the forecast for the total year 2010
+++ Revenues amounting to EUR 2.94 Million generated, exceeding the previous year’s level by about 9 %
+++ EBIT improves to EUR 0.1 Million (half-year 2009: EUR - 0.48 Million)
+++ Tight cost and liquidity management successfully carried out
+++ Focus on consulting as the core business induces high order entry and continuous acquisition of new customers

* * *



June 16, 2010:
Corporate News
n.runs publishes 2009 Annual Report with outlook to the business year 2010
+++ Revenues amounting to EUR 5.66 Million generated
+++ EBIT improves to EUR -0.32 Million (previous year: EUR - 0.80 Million)
+++ Tight cost and liquidity management successfully implemented
+++Outlook to Business Year 2010: Revenue: EUR 6.50 Million, EBIT EUR 0.40 Million

* * *



5. January 2010:
press release
German Consulting Specialist n.runs AG expands their portfolio with an “On Demand” Penetration Testing Platform in cooperation with Indian Supplier iViZ Security

* * *



11. December 2009:
Corporate News
New n.runs Supervisory Board Elected
+++ New Supervisory Board is confirmed at the 2009 Annual Shareholder Meeting
+++ Günther Paul Löw is chosen as the Chairman of the Supervisory Board
+++ Ralph-Peter Quetz is chosen as the Vice Chairman


* * *



4. September 2009:
Corporate News
n.runs publishes 2008 Annual Report
Revenues increase by 22 Percent to EUR 6,70 Million +++ EBIT improves by EUR 0,21 Million to EUR -0,80 Millionen +++ Concentration on profitable Consulting Business


* * *

27 February 2009:
Corporate News
n.runs makes capital increase placement
+++ Subscribed capital increased by 8.7 percent
+++ Funds inflow to be used for reorganization and further growth in consulting
+++ Spin-off of the software solution aps-AV® planned


* * *

17 Dec 2008:
Advisory: Opera HTML parsing flaw lead to remote code execution 

* * *

27 Oct 2008:
Advisory: Eaton MGE OPS Network Shutdown Moduleauthentication bypass and code execution

* * *

21 Oct 2008:
Advisory: Internet Explorer HTML Object Memory Corruption

* * *

30 September 2008:
Corporate News
Figures from the first half of 2008 confirm expansion
+++ Revenues increase by around 30 percent to EUR 3.32m EBITDA improved
+++ by EUR 0.27m to EUR -0.35m Profit impacted by software investments,
+++ consulting profitable Outlook 2008


* * *

17 Sep 2008:
Corporate News
Microsoft selects n.runs as a member of the new program Microsoft Secure Development Lifecycle Pro Network
+++ n.runs AG exclusive member of Microsoft SDL Pro Network
+++ Only member of the MS SDL Pro Network on the European mainland
+++ Medium-term contribution to revenues in excess of 10 percent planned
* * *

10 Sep 2008:
Advisory alert:
Cross-Site Scripting Filter Evasion in various frameworks

* * *

10 Sep 2008:
Advisory alert: 
Horde Framework Cross-Site Scripting in filename MIME attachments

* * *

26 Aug 2008:
Press-release
IT Security for Governments and Military Organizations:
n.runs and Thales Now Co-operating


* * *

25 Aug 2008:
Press-release
Growing threat:
serious attacks on E-Mail-/AV systems constantly increasing n.runs introduces aps-AV – Protective cover for antivirus software