eZ publish 3.2 vulnerable to spam attacks

Author Message

Roy Viggo Pedersen

Friday 24 October 2003 8:13:55 am

The new /form/process function in 3.2 makes it possible to use eZ publish to send spam. Both sender and receiver email address are sent to the function as HTTP POST variables, and the email is sent without any checking where the response came from. All eZ 3.2 sites that use /form/process (need access to form module by Anonymous role) can therefore be used by spammers.

I've made a mod that use a hidden id (ContentObjectID) in the form, and a modified process.php that fetch the content object. The object is of class Form, which contain all the fields needed to send the email. In that way, email is always sent to the receiver. A little better, but not perfect.

I hope this function get some attention in eZ 3.3?

Check out the mod:
http://ez.no/developer/ez_publish_3/contributions/form_processing_spam_prevention_mod

Roy Viggo Pedersen

Paul Forsyth

Friday 24 October 2003 8:32:09 am

Im sure it will. Security is always a priority.

paul

Jan Borsodi

Monday 27 October 2003 7:05:34 am

I'm currently looking into this problem, the fix will be part of the 3.2-3 release.
Thanks for the notice.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Jan Borsodi

Tuesday 28 October 2003 2:11:25 am

The module will be turned off by default in 3.2-3 and 3.3 (uses a separate setting). The reason for this is that the module is insecure by design and should only be used if you really need this kind of functionality.

As for 3.3 I would recommend using the new revised information collector system, you will be able to do the same things you have in your fix.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Paul Forsyth

Tuesday 28 October 2003 2:24:11 am

Does this affect current 3.2-2 information collectors? We have several sites using this.

Paul

Jan Borsodi

Tuesday 28 October 2003 4:16:32 am

The 'spam attack' problem is not in the information collection system but in the separate form module.
This module will fetch all POST variables, generate a mail out of it and send it.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Paul Forsyth

Tuesday 28 October 2003 4:22:27 am

My post was referring to the switching off of the process module. You mentioned that users should use the new improved information collecter routines in ez3.3. If the form module is seperate why mention this?

This implied that the switching of the module affects current info collector routines. Does it?

paul

Jan Borsodi

Wednesday 29 October 2003 1:47:36 am

> This implied that the switching of the module affects current
> info collector routines. Does it?

No, the switch is only for the form/process module.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:26:59
Script start
Timing: Jan 18 2025 19:26:59
Module start 'layout'
Timing: Jan 18 2025 19:26:59
Module start 'content'
Timing: Jan 18 2025 19:27:00
Module end 'content'
Timing: Jan 18 2025 19:27:00
Script end

Main resources:

Total runtime0.7427 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 589.1641152.6406
Module start 'layout' 0.00890.0031 741.804739.4766
Module start 'content' 0.01200.7294 781.2813621.3984
Module end 'content' 0.74140.0012 1,402.679716.1250
Script end 0.7426  1,418.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4912160.0002
Check MTime0.00150.1977160.0001
Mysql Total
Database connection0.00180.241210.0018
Mysqli_queries0.672690.5649740.0091
Looping result0.00070.0947720.0000
Template Total0.703094.720.3515
Template load0.00210.281120.0010
Template processing0.700994.377220.3505
Template load and register function0.00010.016410.0001
states
state_id_array0.00080.105510.0008
state_identifier_array0.00130.176720.0007
Override
Cache load0.00190.2497360.0001
Sytem overhead
Fetch class attribute can translate value0.00100.130430.0003
Fetch class attribute name0.00180.244090.0002
XML
Image XML parsing0.00080.103530.0003
class_abstraction
Instantiating content class attribute0.00000.0033120.0000
General
dbfile0.00070.0893170.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs