Skip to Content Skip to Menu

[#2913] Hidden profiles can be guessed and pulled via url

  • ignatius2
  • ignatius2
  • OFFLINE
  • Posts: 153
  • Thanks: 0
  • Karma: 0
12 years 7 months ago - 12 years 7 months ago #178747 by ignatius2
Hi Guys

My CB setup is such that profile owners can only visit the profiles of the other member of their organization.

Unfortunately, guessing usernames and inserting them into the url is enough to show up the profiles of people who are not in the same organization as the logged-in user.

/my-profile/userprofile/user_name

of course the tabs can be hidden via the privacy plugin, but still, this is a show-stopper for me.

Is there a way around this? Is there a way to hide or obfuscate the url? (as is the case for the user lists)

Thanks

John
Last edit: 12 years 7 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 68613
  • Thanks: 9109
  • Karma: 1434
12 years 7 months ago #178763 by krileon
Of course without some sort of PHP (server side) code to protect the profiles from unauthorized access they'll be able to see the profiles. You could use incubator project CB Auto Actions (requires professional subscription) with a redirect action on the after profile display trigger checking the organization field matches and if not redirect.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • ignatius2
  • ignatius2
  • OFFLINE
  • Posts: 153
  • Thanks: 0
  • Karma: 0
12 years 7 months ago - 12 years 7 months ago #178779 by ignatius2
For some reason you gave me access to the incubator in the past... I just installed the plugin in my test site and it seems perfect for the job. but I do not know if I can use it and I am desperately broke, (I am not paid for this job).

Also, I am incapable of figuring what to enter in the two fields: one for the organization field of the profile and the other for the organization field of the logged-in user.

Can you help me with any of this...

:(

Thanks
Last edit: 12 years 7 months ago by ignatius2.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 68613
  • Thanks: 9109
  • Karma: 1434
12 years 7 months ago #178855 by krileon

For some reason you gave me access to the incubator in the past... I just installed the plugin in my test site and it seems perfect for the job. but I do not know if I can use it and I am desperately broke, (I am not paid for this job).

Users who subscribed before the introduction of incubator were given access to the incubator as part of their advanced subscription. This access will end when you renew as you'd need to upgrade to professional. So no worries until renewal.

Also, I am incapable of figuring what to enter in the two fields: one for the organization field of the profile and the other for the organization field of the logged-in user.

The conditions are substitution supported so you could do [cb_field] Equal To [cb_field2] for example.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • ignatius2
  • ignatius2
  • OFFLINE
  • Posts: 153
  • Thanks: 0
  • Karma: 0
12 years 7 months ago #178874 by ignatius2
Thanks a lot Kyle,

what I am trying to compare here is the [cb_field] of the profile that is about to be displayed to the same [cb_field] in the profile of the logged-in user (to determined if the logged-in user is entitled to see the profile).

thanks

John

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 68613
  • Thanks: 9109
  • Karma: 1434
12 years 7 months ago #179038 by krileon
Ah I see, you'll need a more advanced substitution then. Please try the below.

[cb:userdata field="FIELD_NAME" user="#displayed" /]
Equal To
[cb:userdata field="FIELD_NAME" user="#me" /]

Please note this only will work on users profiles as #displayed is determined using the &user= parameter in the URL. To avoid issues on your own profile you may want to use #displayedOrMe instead of #displayed.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn