Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

clarity

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


tellme at oliver-block

Oct 21, 2009, 6:20 AM

Post #1 of 2 (291 views)
Permalink
clarity

Hello everyone,

these days you can read dozens of articles that implicitely claim that
the following code will produce more than one mail message at a time if
used by a malicous user.

I doubt that it is true, but I'd like to ask here, because you know your
mta better than I. The c code to access sendmail is the following:

...

errno = 0;
sendmail = popen(sendmail_cmd, "w");

if (sendmail) {

...

fprintf(sendmail, "To: %s\n", to);
fprintf(sendmail, "Subject: %s\n", subject);

if (hdr != NULL) {
fprintf(sendmail, "%s\n", hdr);
}

fprintf(sendmail, "\n%s\n", message);

ret = pclose(sendmail);

...

Let's assume that a pipe has been opened successfuly to sendmail
(qmail-inject).

Now some say that if content of hdr can be manipulated in a way that it
contains something like the following would make sendmail (and other
mtas) to produce *two* messages (because of the dot which indeed is an
indicator of the end of a message for SMTP in RFC2821). But if I am
right, we do not "talk" SMTP here.

In their imagination the content could be e.g.

To: someone[at]somewhere
Subject: inquiry
From: fake[at]addresse
To: spam[at]opfer.de
BCC: spam[at]opfer2.de, spam[at]opfer3.de, spam[at]opfer999.de
Subject: Buy cheap Viagra!
Buy cheap Viagra and Vicodine here: http://spamsite.com/
.

[headers for message 2]
Hallo,

habe eine Frage.
.

I am not asking about the possibility of multiple copies caused by the
Bcc header field, but only, if a single dot in one line followed by CRLF
or LF will make sendmail to send two different messages.

Has sendmail ever been prone to that in earlier versions ?

BTW: I think it is important to be security aware and I do not want to
ridicule concerns regarding secure software and also not those who
publish that.

Best regards,

Oliver Block


search-web-for-address at pyropus

Oct 21, 2009, 8:09 AM

Post #2 of 2 (255 views)
Permalink
Re: clarity [In reply to]

Oliver Block <tellme[at]oliver-block.eu> wrote:
>
> Let's assume that a pipe has been opened successfuly to sendmail
> (qmail-inject).
>
> Now some say that if content of hdr can be manipulated in a way that it
> contains something like the following would make sendmail (and other
> mtas) to produce *two* messages (because of the dot which indeed is an
> indicator of the end of a message for SMTP in RFC2821). But if I am
> right, we do not "talk" SMTP here.

qmail doesn't treat this as an SMTP conversation, and therefore will not
create multiple messages via this sort of "trick". It never has.

sendmail or other MTAs may have been vulnerable to this sort of exploit at
some point; if you're interested in that, you could consult a sendmail/etc
mailing list.

Charles
--
--------------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at: http://pyropus.ca/software/
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
--------------------------------------------------------------------------

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.