Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Crafted URLs bypassing ACL

10 years 11 months ago
  • Rob's Avatar
    Topic Author
  • Rob
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

ISSUE SUMMARY:
My site is closed to the public. All JS... modules have been set to access=Registered, as have all items in the JomSocial Toolbar/menu. As expected, when not logged in and click on a JomSocial menu item, the public-user is redirected to login.

Unexpectedly, when the URL is crafted by removing "&Itemid=X" from the end of the URL, the user is granted access. How can I plug this hole?
Thank you,

STEPS TO REPLICATE:
1. Go to: we.seasideweb.com/index.php?option=com_c...sk=browse&Itemid=117
(since not a logged-in registered user, redirected to login as expected)
2 Got to: we.seasideweb.com/index.php?option=com_c...w=search&task=browse
(you'll see information that should be private only to registered users, namely my pic and name)
3
4
5
RESULT
EXPECTED RESULT
I want public-user who enters we.seasideweb.com/index.php?option=com_c...w=search&task=browse to be redirected to login, and *not* have the request to see the members list granted. I want to harden all the JomSocial toolbar links in the same way.
BROWSER

10 years 11 months ago
Licenses:

Hi, Rob.

This has nothing to do with JomSocial but rather with Joomla! Privacy restrictions are attached to... menu item ID. If you remove ID from URL... then no restrictions could be applied (the same goes for module assignment - you assign them to menu items ergo to menu item ID).

So how this can be fixed? First enable on your site SEF (Joomla! built in SEF will be enough). This will hide menu item ID from URL so it can't be removed.

You may also add condition to your template and wrap with it component display area. If user is not logged in - no component content will be displayed.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Rob
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW