All of lore.kernel.org
 help / color / mirror / Atom feed
* Injection also in contrib/web/php-user/mlmmj.php?
@ 2010-01-10  7:28 Ansgar Burchardt
  2010-01-10 11:50 ` Morten Shearman Kirkegaard
  2010-01-10 14:29 ` Gerd v. Egidy
  0 siblings, 2 replies; 3+ messages in thread
From: Ansgar Burchardt @ 2010-01-10  7:28 UTC (permalink / raw)
  To: mlmmj

Hi,

the changelog for mlmmj 1.2.16 contains the entry

   o Fixed injection in contrib/web/perl-user (Gerd von Egidy)

and removed the line

   -               . "Cc: $from\n"

from contrib/web/perl-user/mlmmj.cgi.  But the same logic is present
in the PHP script as well:

   $addheader .= "Cc: ".$this->email."\n";

This should probably be removed for the same reasons.

While looking at this, I saw the regular expression used to try to
validate e-mail addresses in the PHP script:

   "^[a-z0-9\._-]+".chr(64)."+[a-z0-9\._-]+\.+[a-z]{2,4}$"

This does not allow a plus (+) in the local part which is permitted (and
also used by mlmmj itself).  There are also TLDs that have more than
four characters: .travel, .museum, not to begin with international TLDs
like .xn--zckzah (which are just in testing for now).  The PHP script
should *not* make (wrong) assumptions about what TLDs exist.

Regards,
Ansgar

PS: Please CC me on replies.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-10 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-10  7:28 Injection also in contrib/web/php-user/mlmmj.php? Ansgar Burchardt
2010-01-10 11:50 ` Morten Shearman Kirkegaard
2010-01-10 14:29 ` Gerd v. Egidy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.