Commit Graph

38 Commits

Author SHA1 Message Date
1fb029cde7 Initial push with a few changes 2024-05-31 15:27:02 +02:00
Henrik Andersson
4dca546d04 Malicious RDP server security fixes
This commit includes fixes for a set of 21 vulnerabilities in
rdesktop when a malicious RDP server is used.

All vulnerabilities was identified and reported by Eyal Itkin.

 * Add rdp_protocol_error function that is used in several fixes
 * Refactor of process_bitmap_updates
 * Fix possible integer overflow in s_check_rem() on 32bit arch
 * Fix memory corruption in process_bitmap_data - CVE-2018-8794
 * Fix remote code execution in process_bitmap_data - CVE-2018-8795
 * Fix remote code execution in process_plane - CVE-2018-8797
 * Fix Denial of Service in mcs_recv_connect_response - CVE-2018-20175
 * Fix Denial of Service in mcs_parse_domain_params - CVE-2018-20175
 * Fix Denial of Service in sec_parse_crypt_info - CVE-2018-20176
 * Fix Denial of Service in sec_recv - CVE-2018-20176
 * Fix minor information leak in rdpdr_process - CVE-2018-8791
 * Fix Denial of Service in cssp_read_tsrequest - CVE-2018-8792
 * Fix remote code execution in cssp_read_tsrequest - CVE-2018-8793
 * Fix Denial of Service in process_bitmap_data - CVE-2018-8796
 * Fix minor information leak in rdpsnd_process_ping - CVE-2018-8798
 * Fix Denial of Service in process_secondary_order - CVE-2018-8799
 * Fix remote code execution in in ui_clip_handle_data - CVE-2018-8800
 * Fix major information leak in ui_clip_handle_data - CVE-2018-20174
 * Fix memory corruption in rdp_in_unistr - CVE-2018-20177
 * Fix Denial of Service in process_demand_active - CVE-2018-20178
 * Fix remote code execution in lspci_process - CVE-2018-20179
 * Fix remote code execution in rdpsnddbg_process - CVE-2018-20180
 * Fix remote code execution in seamless_process - CVE-2018-20181
 * Fix remote code execution in seamless_process_line - CVE-2018-20182
2019-01-16 12:28:44 +01:00
Karl Mikaelsson
1cdf4e87cb Remove implicit fall-throughs from bitmap.c and parallel.c 2018-01-31 15:04:49 +01:00
René Genz
9e99dd52d6 Fix minor spelling mistakes 2017-11-02 01:01:44 +01:00
Henrik Andersson
896a923f55 Markup unused parameters 2017-10-20 11:05:52 +02:00
Henrik Andersson
87d8d123b8 Rework the logging system
This commit will add a logging system to solve the problem that
one actually need to recompile rdesktop from source to enable
different debug logging.

- Same logging api  for all kind of logging and messages to
   end user.

- Adding -v for verbose output when running rdesktop.

- All messages are logged into a subject and with a type, eg:

     logger(Keyboard, Notice, "Autos-electing %s based on locale.", locale);

- Debug logging is enabled trough a environment variable RDEKSTOP_DEBUG,
  which specifies subjects of interest, comma separated. There is a special
  subject named All which includes all subject for debug loggin. There is also
  a simple logic opeartor '!' = NOT which can be used in combination like:

    RDESKTOP_DEBUG=All,!Graphics,!Sound

  Which would give debug log output for All subject except Graphics and Sound.
2017-01-26 14:19:40 +01:00
Peter Åstrand
b638882347 Include emails in copyright statements.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1615 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:13:04 +00:00
Peter Åstrand
281d7c9f06 Changed license to GPLv3
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:31:06 +00:00
Jay Sorg
88855ddcbf update the copyright year
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1474 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11 03:51:23 +00:00
Jay Sorg
5d1527d1b6 32 bit color
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1416 423420c4-83ab-492f-b58f-81f9feb106b5
2007-08-30 04:47:36 +00:00
Jay Sorg
6091381a81 prefix BOOL with RD_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 04:47:06 +00:00
Jay Sorg
d95263bb8a remove old unused code and update email address
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1370 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-06 22:21:20 +00:00
Jay Sorg
797df4fa02 copyright year update
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1364 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 05:39:39 +00:00
Peter Åstrand
1320755f2b Added missing c-basic-offset:s and license headers
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@962 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 10:56:16 +00:00
Michael Gernoth
ec643e4718 bump version to 1.4.0
change year in files
add missing docu for updated commandline-flags
update changelog


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@827 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-06 21:11:18 +00:00
Michael Gernoth
d48204c9c3 fix compiler warning/error "a cast does not yield a lvalue"
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@694 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-11 07:34:03 +00:00
Michael Gernoth
af00e0305b Speedup fixes on all architectures from Jay
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@692 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-07 04:57:39 +00:00
Michael Gernoth
725d22c54d Only do the memcpy if NEED_ALIGNMENT is defined
TODO: configure-test which defines it


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@680 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-27 09:04:42 +00:00
Michael Gernoth
cd91125060 unaligned memory-access leads to bus-error on some architectures.
memcpy the value instead of a direct assignment


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@654 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-16 09:11:03 +00:00
Jay Sorg
d7be980dbb only check Bpp once when decompressing a bitmap, not for each pixel, much faster
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@648 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-15 17:28:30 +00:00
Erik Forsberg
00b94fa8c7 Added a line telling emacs that the basic offset is 8.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@344 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:08:57 +00:00
Peter Åstrand
4efe873c2f More static funcs.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@320 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-10 13:07:47 +00:00
Peter Åstrand
0f0bb5f281 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@317 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-10 12:58:51 +00:00
Jay Sorg
c50d176caf one bitmap decomp function to handle all colour depths
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@313 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-07 23:43:37 +00:00
Jay Sorg
4b26f4fc6b 16bit
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@308 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-04 05:32:13 +00:00
Matt Chapman
b120a50f44 Update copyright dates on all files that have changed.
Bump version to 1.2-cvs.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@206 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-26 14:26:46 +00:00
Peter Åstrand
4f8b0bc47a Changed max line length to 100
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@81 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-30 07:18:48 +00:00
Matt Chapman
027225c75d OSF1/Alpha build fixes.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@35 423420c4-83ab-492f-b58f-81f9feb106b5
2001-09-15 14:30:46 +00:00
Matt Chapman
24ea31f68a Portability fixes, including elimination of variable argument macros.
Rudimentary configure script.
Miscellaneous cleanups.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@29 423420c4-83ab-492f-b58f-81f9feb106b5
2001-09-14 13:51:38 +00:00
Matt Chapman
b5082af223 Merges from pl19-6-5.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@27 423420c4-83ab-492f-b58f-81f9feb106b5
2001-06-20 13:54:48 +00:00
Matt Chapman
75717d8ab6 Changed indentation style (-psl).
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@24 423420c4-83ab-492f-b58f-81f9feb106b5
2001-01-06 03:47:04 +00:00
Matt Chapman
b9613445f9 ran indent (-bli0 -i8 -cli8 -npcs -npsl)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@23 423420c4-83ab-492f-b58f-81f9feb106b5
2001-01-06 03:12:10 +00:00
Matt Chapman
a7bb5b3af9 Bicolour was slightly broken (dodgy x++ without going through normal
loop). Hopefully this should be the last of our bitmap decompression
problems.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@18 423420c4-83ab-492f-b58f-81f9feb106b5
2000-10-08 01:59:25 +00:00
Matt Chapman
e65e389116 Fixed bitmap decompression routines, which were sometimes resulting
in anomalous vertical lines. The first scanline seems to be compressed
separately.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@17 423420c4-83ab-492f-b58f-81f9feb106b5
2000-10-05 15:24:09 +00:00
Matt Chapman
cd9b5a8761 Major commit of work from laptop - done in various free moments.
Implemented encryption layer and some basic licensing negotiation.
Reorganised code somewhat. While this is not quite as clean, it is
a lot faster - our parser speed was becoming a bottle-neck.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@9 423420c4-83ab-492f-b58f-81f9feb106b5
2000-08-15 10:23:24 +00:00
Matt Chapman
e11a571f14 Committing some awesome progress I made while overseas - this commit
really embodies a huge number of changes. We are now able to talk quite
fluently to a French NT Terminal Server - in normal usage only minor
font issues remain (handling of TEXT2 order is not perfect).

The next major hurdle is encryption, and it will be quite a big hurdle
- there seems to be some quite nasty session key stuff.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@8 423420c4-83ab-492f-b58f-81f9feb106b5
2000-07-25 12:34:29 +00:00
Matt Chapman
26d316fec0 Miscellaneous updates: implemented some more protocol features including
colour maps. Started on a new bitmap decompression engine which is not
completely working yet - however I am going back on the road so I am
committing now.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@6 423420c4-83ab-492f-b58f-81f9feb106b5
2000-07-07 09:40:03 +00:00
Matt Chapman
34f82f3e18 This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@3 423420c4-83ab-492f-b58f-81f9feb106b5
2000-05-10 07:36:34 +00:00