1
0
Fork 0
mirror of https://github.com/requarks/wiki.git synced 2026-03-02 22:06:55 -05:00

Removing all rights from group "Guest" still allows to view Wiki #1308

Closed
opened 2026-02-20 18:06:45 -05:00 by deekerman · 11 comments
Owner

Originally created by @m4n1du on GitHub (Apr 1, 2020).

Originally assigned to: @NGPixel on GitHub.

Describe the bug
Although I have removed all rights from the user group "Guest" (as described here: https://docs.requarks.io/groups#private-wiki), unauthorized (i.e. not logged in) users can still view all pages.

To Reproduce
Steps to reproduce the behavior:

  1. Remove all rights from user group "Guest"
  2. Log out
  3. Access Wiki anonymously

Expected behavior
Redirection to login screen or at least "You're not authorized." page.

Screenshots
grafik

Host Info (please complete the following information):

  • OS: Official Docker image
  • Wiki.js version: 2.2.51
  • Database engine: postgres 9.6.15

Additional context
"LDAP / Active Directory" authentication is enabled.

Originally created by @m4n1du on GitHub (Apr 1, 2020). Originally assigned to: @NGPixel on GitHub. **Describe the bug** Although I have removed all rights from the user group "Guest" (as described here: https://docs.requarks.io/groups#private-wiki), unauthorized (i.e. not logged in) users can still view all pages. **To Reproduce** Steps to reproduce the behavior: 1. Remove all rights from user group "Guest" 2. Log out 3. Access Wiki anonymously **Expected behavior** Redirection to login screen or at least "You're not authorized." page. **Screenshots** ![grafik](https://user-images.githubusercontent.com/24991230/78144576-14890e00-7430-11ea-857e-aaa36851a58f.png) **Host Info (please complete the following information):** - OS: Official Docker image - Wiki.js version: 2.2.51 - Database engine: postgres 9.6.15 **Additional context** "LDAP / Active Directory" authentication is enabled.
Author
Owner

@rlarrode commented on GitHub (Apr 1, 2020):

Hi manraf,

Can you please provide a screen shot of the PAGE RULES tab?

Thanks

@rlarrode commented on GitHub (Apr 1, 2020): Hi manraf, Can you please provide a screen shot of the PAGE RULES tab? Thanks
Author
Owner

@Smankusors commented on GitHub (Apr 2, 2020):

I gotta say, there's something weird when I tried to replicate this. It needs several seconds/minutes before the applied permissions have effect on wiki. But if I'm using page rules, it is immediately have effect on wiki.

But if you can't wait, you can just restart the server and see if there's any effect.

@Smankusors commented on GitHub (Apr 2, 2020): I gotta say, there's something weird when I tried to replicate this. It needs several seconds/minutes before the applied permissions have effect on wiki. But if I'm using page rules, it is immediately have effect on wiki. But if you can't wait, you can just restart the server and see if there's any effect.
Author
Owner

@m4n1du commented on GitHub (Apr 3, 2020):

Hi manraf,

Can you please provide a screen shot of the PAGE RULES tab?

Thanks

grafik

Do those have any effect if no content permissions are enabled? The message on top ("You must enable [...] for page rules to have any effect.") suggests otherwise.

@m4n1du commented on GitHub (Apr 3, 2020): > > > Hi manraf, > > Can you please provide a screen shot of the PAGE RULES tab? > > Thanks ![grafik](https://user-images.githubusercontent.com/24991230/78347840-584f5500-75a1-11ea-8681-0a1ee9820102.png) Do those have any effect if no content permissions are enabled? The message on top ("You must enable [...] for page rules to have any effect.") suggests otherwise.
Author
Owner

@rlarrode commented on GitHub (Apr 3, 2020):

Can you please try to remove the current rule and perform new tests?

@rlarrode commented on GitHub (Apr 3, 2020): Can you please try to remove the current rule and perform new tests?
Author
Owner

@m4n1du commented on GitHub (Apr 8, 2020):

@rlarrode I just removed all rules from the "Guest" group, unfortunately, the problem still persists.

grafik

What I also tried was adding a "deny all" rule, still no effect:

grafik

I am not only using internal authentication but also LDAP, maybe this messes some things up?

@m4n1du commented on GitHub (Apr 8, 2020): @rlarrode I just removed all rules from the "Guest" group, unfortunately, the problem still persists. ![grafik](https://user-images.githubusercontent.com/24991230/78789794-ed8d8780-79ad-11ea-8229-7a1b3091645c.png) What I also tried was adding a "deny all" rule, still no effect: ![grafik](https://user-images.githubusercontent.com/24991230/78789824-f7af8600-79ad-11ea-8c42-57acaee09171.png) I am not only using internal authentication but also LDAP, maybe this messes some things up?
Author
Owner

@rlarrode commented on GitHub (Apr 8, 2020):

@manraf i tried on my side to reproduce your behaviour wuth no success. when user is not logged in, he is automatically redirected to the logon page.

I used the same version of wiki (2.2.51 but installed using npm with no LDAP)

@rlarrode commented on GitHub (Apr 8, 2020): @manraf i tried on my side to reproduce your behaviour wuth no success. when user is not logged in, he is automatically redirected to the logon page. I used the same version of wiki (2.2.51 but installed using npm with no LDAP)
Author
Owner

@Smankusors commented on GitHub (Apr 8, 2020):

@manraf have you tried restarting Wiki.js?

@Smankusors commented on GitHub (Apr 8, 2020): @manraf have you tried restarting Wiki.js?
Author
Owner

@m4n1du commented on GitHub (Apr 9, 2020):

I tried both things again and restarted the container each time, still no success. :(

@m4n1du commented on GitHub (Apr 9, 2020): I tried both things again and restarted the container each time, still no success. :(
Author
Owner

@Smankusors commented on GitHub (Apr 9, 2020):

alright, there's something I need to know. Do you mean "Guest" or "Guests"? Are you creating your own group "Guest" or using default "Guests" group? Your comments and screenshots conflicts, especially when you using quotes on your comments.


Anyway, try incognito, see if it's just your browser cache

@Smankusors commented on GitHub (Apr 9, 2020): alright, there's something I need to know. Do you mean "Guest" or "Guests"? Are you creating your own group "Guest" or using default "Guests" group? Your comments and screenshots conflicts, especially when you using quotes on your comments. --- Anyway, try incognito, see if it's just your browser cache
Author
Owner

@m4n1du commented on GitHub (Apr 9, 2020):

alright, there's something I need to know. Do you mean "Guest" or "Guests"? Are you creating your own group "Guest" or using default "Guests" group? Your comments and screenshots conflicts, especially when you using quotes on your comments.

Anyway, try incognito, see if it's just your browser cache

Sorry, I definitely mean the standard group called "Guests". I did try with different browsers and incognito mode, no success. I will try to spin up another container once I find the time and check if it works from scratch and then add LDAP etc.

@m4n1du commented on GitHub (Apr 9, 2020): > > > alright, there's something I need to know. Do you mean "Guest" or "Guests"? Are you creating your own group "Guest" or using default "Guests" group? Your comments and screenshots conflicts, especially when you using quotes on your comments. > > Anyway, try incognito, see if it's just your browser cache Sorry, I definitely mean the standard group called "Guests". I did try with different browsers and incognito mode, no success. I will try to spin up another container once I find the time and check if it works from scratch and then add LDAP etc.
Author
Owner

@NGPixel commented on GitHub (Apr 10, 2020):

Note that the guest permissions are cached for 1 minute. So make sure to wait at least that long before testing.

@NGPixel commented on GitHub (Apr 10, 2020): Note that the guest permissions are cached for 1 minute. So make sure to wait at least that long before testing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wiki-requarks#1308
No description provided.