Forums / Developer / Strange access control behaviour

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/

eZ debug

Timing: Jan 31 2025 08:15:30
Script start
Timing: Jan 31 2025 08:15:30
Module start 'content'
Timing: Jan 31 2025 08:15:30
Module end 'content'
Timing: Jan 31 2025 08:15:30
Script end

Main resources:

Total runtime0.1830 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9453180.8281
Module start 'content' 0.00620.0077 768.773497.8828
Module end 'content' 0.01390.1690 866.6563527.2969
Script end 0.1828  1,393.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.8623200.0002
Check MTime0.00130.6852200.0001
Mysql Total
Database connection0.00100.551410.0010
Mysqli_queries0.131271.71201410.0009
Looping result0.00140.79141390.0000
Template Total0.168692.110.1686
Template load0.00100.561710.0010
Template processing0.167691.580210.1676
Override
Cache load0.00060.335010.0006
Sytem overhead
Fetch class attribute can translate value0.00090.493510.0009
XML
Image XML parsing0.00040.235610.0004
General
dbfile0.00904.9003200.0004
String conversion0.00000.003330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs