Bug 445825 (CVE-2008-1801) - CVE-2008-1801 rdesktop: iso_recv_msg() Integer Underflow Vulnerability
Summary: CVE-2008-1801 rdesktop: iso_recv_msg() Integer Underflow Vulnerability
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-1801
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL: http://nvd.nist.gov/nvd.cfm?cvename=C...
Whiteboard:
Depends On: 445841 445842 445843 452978 452979 452980 452981
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-09 10:10 UTC by Tomas Hoger
Modified: 2019-09-29 12:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-25 06:21:20 UTC
Embargoed:


Attachments (Terms of Use)
Public PoC (671 bytes, text/plain)
2008-05-27 14:44 UTC, Tomas Hoger
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2008:0575 0 normal SHIPPED_LIVE Moderate: rdesktop security update 2008-07-24 17:15:19 UTC
Red Hat Product Errata RHSA-2008:0576 0 normal SHIPPED_LIVE Moderate: rdesktop security update 2008-07-24 17:24:43 UTC
Red Hat Product Errata RHSA-2008:0725 0 normal SHIPPED_LIVE Moderate: rdesktop security and bug fix update 2008-07-25 06:23:08 UTC

Description Tomas Hoger 2008-05-09 10:10:20 UTC
iDefense published advisory affecting rdesktop:

DESCRIPTION:
Remote exploitation of an integer underflow vulnerability in rdesktop, as
included in various vendors' operating system distributions, allows attackers
to execute arbitrary code with the privileges of the logged-in user.

The vulnerability exists within the code responsible for reading in an RDP
request. When reading a request, a 16-bit integer value that represents the
number of bytes that follow is taken from the packet. This value is then
decremented by 4, and used to calculate how many bytes to read into a heap
buffer. The subtraction operation can underflow, which will then lead to the
heap buffer being overflowed.

ANALYSIS:
Exploitation of this vulnerability results in the execution of arbitrary code
with the privileges of the logged in user. In order to exploit this
vulnerability, an attacker must persuade a targeted user to connect to a
malicious RDP server. 

Reference:
http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=696

Upstream patch:
http://rdesktop.cvs.sourceforge.net/rdesktop/rdesktop/iso.c?r1=1.19&r2=1.20

Comment 5 Tomas Hoger 2008-05-14 06:12:08 UTC
Upstream released version 1.6.0 which address this issue:

http://sourceforge.net/mailarchive/message.php?msg_name=20080511065217.GA24455%40cse.unsw.EDU.AU


Comment 6 Fedora Update System 2008-05-14 22:08:17 UTC
rdesktop-1.6.0-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2008-05-14 22:12:30 UTC
rdesktop-1.6.0-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2008-05-14 22:15:10 UTC
rdesktop-1.6.0-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Tomas Hoger 2008-05-27 14:44:04 UTC
Created attachment 306783 [details]
Public PoC

http://www.milw0rm.com/exploits/5561

Comment 11 Tomas Hoger 2008-06-23 16:17:47 UTC
As for CVSSv2 score, two possibilities should be considered.  User needs to be
convinced to connect to untrusted RDP server for this issue to be exploited. 
This is lot more likely to happen if malicious RDP server is within some local
network (AV:A/AC:M) and not so likely for random RDP server in the Internet
(AV:N/AC:H), hence Internet vector should have higher access complexity.

AV:A/AC:M results in higher base score of:
5.4/AV:A/AC:M/Au:N/C:P/I:P/A:P


Note You need to log in before you can comment on or make changes to this bug.