Strange access control behaviour

Author Message

Eirik Alfstad Johansen

Thursday 04 March 2004 12:57:52 pm

Hi,

Some of the users of my site have reported some strange behaviour related to access control.

I've created a class called "Web site to be monitored" where users can store web sites which will be monitored by a script in an extension.

After creating the class, I appended the following rules to the guest account role:

content create Class(Web site to be monitored)
content edit Class(Web site to be monitored) , Owner( Self )
content read Class(Web site to be monitored) , Owner( Self )
content remove Class(Web site to be monitored) , Owner( Self )

This should make sure that users can only view, edit and delete their own monitored web sites.

I then use a fetch() function in a template to fetch a list of all the web sites currently monitored.

The strange behaviour is that some users have reported that the web sites of other users are appearing in this list when they're logged in. However, when they visit the printerfriendly version of the list, their own web sites appear. Also, when I create a guest account at my end through the same interface, only the web sites created by myself appear in my list.

Does this make any sense to anyone. What could I be missing?

Thanks in advance !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Borgermans

Thursday 04 March 2004 1:05:32 pm

Hi Eirik

Happened only in older release (3.1) with me (bugs fixed now) and when it is wrapped in cache blocks with a not so good key or syntax errors in cache blocks. What version are you referring to?

regards

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Eirik Alfstad Johansen

Thursday 04 March 2004 1:50:02 pm

v. 3.3

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Georg Franz

Thursday 04 March 2004 4:18:55 pm

Hi Eirik,

unfortunatelly it's a "known, open bug", the content view caching doesn't support the policy "self-edit" yet.

Have a look at:
http://ez.no/community/bug_reports/security_risk_caching_problems_session_problems

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Eirik Alfstad Johansen

Friday 05 March 2004 12:07:10 am

Thanks for the heads up, Emil !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 19 2025 04:20:08
Script start
Timing: Jan 19 2025 04:20:08
Module start 'layout'
Timing: Jan 19 2025 04:20:08
Module start 'content'
Timing: Jan 19 2025 04:20:09
Module end 'content'
Timing: Jan 19 2025 04:20:09
Script end

Main resources:

Total runtime1.2091 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1641152.6250
Module start 'layout' 0.00550.0041 741.789139.4453
Module start 'content' 0.00961.1980 781.2344608.5156
Module end 'content' 1.20760.0015 1,389.750016.1563
Script end 1.2091  1,405.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2744160.0002
Check MTime0.00150.1210160.0001
Mysql Total
Database connection0.00060.048410.0006
Mysqli_queries1.145894.7587650.0176
Looping result0.00060.0532630.0000
Template Total1.175697.220.5878
Template load0.00210.174020.0011
Template processing1.173597.055420.5868
Template load and register function0.00010.008310.0001
states
state_id_array0.00090.076410.0009
state_identifier_array0.00240.197220.0012
Override
Cache load0.00180.1510410.0000
Sytem overhead
Fetch class attribute can translate value0.00070.058230.0002
Fetch class attribute name0.00170.141380.0002
XML
Image XML parsing0.00270.226630.0009
class_abstraction
Instantiating content class attribute0.00000.0013100.0000
General
dbfile0.00240.1948290.0001
String conversion0.00000.000840.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs