Bugtraq mailing list archives
Re: base64
From: Earl Hood <earl () earlhood com>
Date: Fri, 26 Sep 2003 15:38:22 -0500
Those following this thread may be interested in checking out RFC 3548: <http://www.faqs.org/rfcs/rfc3548.html>. It appears to address some of the concerns raised in this thread and what the recommended practices are. It is worth noting the RFC 2045 states that decoders *must* ignore invalid characters when decoding. However, I believe RFC 2045 is ambiguous about '='. If it appears in the middle of input stream, it could imply end-of-data or an invalid character if you take the approach that '=' is only a valid base64 character at the end of encoded data. The following is written in the Security Considerations of RFC 3548: When implementing Base encoding and decoding, care should be taken not to introduce vulnerabilities to buffer overflow attacks, or other attacks on the implementation. A decoder should not break on invalid input including, e.g., embedded NUL characters (ASCII 0). If non-alphabet characters are ignored, instead of causing rejection of the entire encoding (as recommended), a covert channel that can be used to "leak" information is made possible. The implications of this should be understood in applications that do not follow the recommended practice. --ewh
Current thread:
- Re: base64, (continued)
- Re: base64 Birl (Sep 23)
- Re: base64 Lothar Kimmeringer (Sep 24)
- Re: base64 David Wilson (Sep 24)
- Re: base64 Earl Hood (Sep 25)
- Re: base64 Christian Vogel (Sep 25)
- Re: base64 Seth Breidbart (Sep 24)
- Re: base64 Lothar Kimmeringer (Sep 24)
- Re: base64 Birl (Sep 23)
- Re: base64 Alexander Ogol (Sep 23)
- Re: base64 Christian Vogel (Sep 24)
- Re: base64 David Wilson (Sep 24)
- Re: base64 der Mouse (Sep 24)
- Re: base64 Christian Vogel (Sep 24)
- Re: base64 Earl Hood (Sep 26)
- RE: base64 latte (Sep 23)
- Re: base64 Ilya Teterin (Sep 23)
- Re: base64 MightyE (Sep 24)
- Re: base64 Buck Huppmann (Sep 24)
- Re: base64 Andrew Church (Sep 25)
- Message not available
- Re: base64 MightyE (Sep 25)
- Re: base64 Bennett Todd (Sep 25)
- Re: base64 MightyE (Sep 25)
- Re: base64 Earl Hood (Sep 26)
- Re: base64 Bennett Todd (Sep 26)
- Re: base64 Buck Huppmann (Sep 24)