Article View: news.software.nntp
Article #83930Re: STARTTLS / SASL and plaintext command injection
From: D. Stussy
Date: Wed, 16 Mar 2011 21:52
Date: Wed, 16 Mar 2011 21:52
46 lines
2914 bytes
2914 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:8ua932Fhr1U1@mid.individual.net... > Hi all, > An interesting report (CVE-2011-0411): > http://www.postfix.org/CVE-2011-0411.html > > I have not tested with INN but at first thought, I do not see why it > would not be impacted (nnrpd/line.c goes on reading the input of commands). > I write in this public newsgroup because CVE-2011-0411 is public. > > An example would be to send: > > STARTTLS\r\nARTICLE <private@article.id>\r\n > > INN (and maybe other servers) will negotiate the TLS layer and then run > the subsequent command as though it had been sent encrypted (whereas in > fact it was sent before the security layer was negotiated). > > > Probably the same problem affects AUTHINFO SASL with a negotiation of a > TLS layer. > But why doesn't this article address it? (Don't similar SASL > authentication commands exist in SMTP?) > > > Wouldn't it be interesting to answer 501 (syntax error) or another > response code when a command which should not be pipelined has in fact > been detected as pipelined? > > > Otherwise, another straightforward solution would be to drop what is in > the read buffer when the TLS layer has been negotiated successfully. > I think that just setting > line->where = line->where + line->remaining; > in nnrpd/nnrpd.c does the trick. > > Any thoughts about that? > > That would also be something worthwhile mentioning in RFC 4642 and RFC 4643. Flushing the input stream [after accepting STARTTLS] before sending out the first TLS negotiation packet seems to be the correct action.
Technical Details
Message-ID:
<ilrbc5$eie$1@snarked.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!news.kjsl.com!usenet.stanford.edu!newsfeed.news.ucla.edu!news.snarked.org!pool-71-106-213-194.lsanca.dsl-w.verizon.net!not-for-mailReferences:
<8ua932Fhr1U1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <ilrbc5$eie$1@snarked.org> Subject: Re: STARTTLS / SASL and plaintext command injection Date: Wed, 16 Mar 2011 14:52:36 -0700 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <8ua932Fhr1U1@mid.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.alt.net!news.kjsl.com!usenet.stanford.edu!newsfeed.news.ucla.edu!news.snarked.org!pool-71-106-213-194.lsanca.dsl-w.verizon.net!not-for-mail Newsgroups: news.software.nntp Lines: 46 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> Injection-Date: Wed, 16 Mar 2011 21:51:01 +0000 (UTC) Injection-Info: snarked.org; posting-host="pool-71-106-213-194.lsanca.dsl-w.verizon.net:71.106.213.194"; logging-data="14926"; mail-complaints-to="newsmaster+complaints@snarked.org" X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Original-Bytes: 2664