>Wouldn't it make more sense to address the underlying problem (too long
>of a subject)?
Yes it would make more sense - but we can't. ASSP receives the complete
mail header and then it is doing its normal checks - and possibly we can
detect this mail there. But within these checks (parsing ... regexes ...
length ...) ASSP uses a lot of memory and CPU - and possibly it will crash
on this. This points to the real problem! For this reason the
'preHeaderRe' is implemented to be able to block such 'crash forcing
mails' before they can do there dangerous 'work'. A mail with such a
subject is not sent to deliver spam - it is like a DoS Attack.
The 'preHeaderRe' is not used after the full mail header is received - it
is used while receiving the header line per line - so this regex has only
to process one single line.
Thomas
Von: Charles Marcus <[email protected]>
An: [email protected]
Datum: 07.10.2010 13:58
Betreff: Re: [Assp-test] mail with too long subject kills assp
On 2010-10-07 6:46 AM, Thomas Eckardt wrote:
> we saw in some cases V1 and V2 system going to stop working or using
100%
> CPU and lot of memory, if a mail with a subject
>
> 768551Priotiy Refill Order 130612Special Order 710500Priotiy Refill
Order
> 338466Special Order 335560Priotiy Refill Order 607177Your Special Order
> 623611Your Priotiy Refill Order 490683Your Special Order 959623Your
> Priotiy Refill Order 806235Your Priotiy Refill Order 435205Your Special
> Order 709010Your Priotiy Refill Order 258541Refill order 687044Your
Refill
> order 402875Your Special Order 454912Your Priotiy Refill Order
> 977566Priotiy Refill Order 342475Your Special Order 591867Priotiy Refill
> Order 102
>
> ==snip, lots more of this...==
>
> er 402875Refill order 606384Your Priotiy Refill Order 739147Your Special
> Order 7
> 14405Your Special Order 554106Your Special Order 960497Priotiy Refill
> Order 7571......
>
>
> is received by ASSP. To solve the problem, please add the following
regex
> to 'preHeaderRe'
>
>
\d{3,6}\s*(?:your|special|(?:prioity|priority))\s+(?:special|refill|(?:prioity|priority))\s+(?:order|refill)
>
> This will block the mail, before the contents could make problems.
Wouldn't it make more sense to address the underlying problem (too long
of a subject)?
--
Best regards,
Charles
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test