You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2016/02/25 10:02:01 UTC

[Bug 7300] New: Parsing of address headers in spamassassin ($pms->get('From:name'))

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7300

            Bug ID: 7300
           Summary: Parsing of address headers in spamassassin
                    ($pms->get('From:name'))
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Libraries
          Assignee: dev@spamassassin.apache.org
          Reporter: ich@markusbenning.de

Hello,

recently i'm recieving mails which try to obfuscate the sender by sending
mails with a From: like

From: "John Doe <jo...@doe-company.tld>" <sp...@spamdomain.tld>

While implementing a header check to detect such attempts i noticed
that SA seems to have problems parsing such addresses correctly.

When accessing the displayname with From:name the PerMsgStatus.pm module
only returns the string "\"John Doe".

$pms->get('From:name');

    "John Doe

The regex should be extended to cover all characters of a quoted string to the
closing quote.

On line 2056 in PerMsgStatus.pm:

http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm?view=markup#l2056

It should be extended to something like:

  if ($result =~ /^ \s* ( [^"]*? | "[^"]*" ) \s* < [^<>]* >/sx) {


Markus

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7300] Parsing of address headers in spamassassin ($pms->get('From:name'))

Posted by bu...@bugzilla.spamassassin.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7300

Mark Martinec <Ma...@ijs.si> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|Undefined                   |3.4.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7300] Parsing of address headers in spamassassin ($pms->get('From:name'))

Posted by bu...@bugzilla.spamassassin.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7300

Karsten Bräckelmann <gu...@rudersport.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #1 from Karsten Bräckelmann <gu...@rudersport.de> ---
Thanks for the report, Markus. This problem with handling email addresses
embedded in the name part of headers has been reported already. Closing as
duplicate.

*** This bug has been marked as a duplicate of bug 7238 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.