Freshrss: Error 403 when a new user registers

Created on 21 Apr 2019  路  11Comments  路  Source: FreshRSS/FreshRSS

Hello :)

New user can't registers on my FreshRSS instance.
After test, I encounter this error :

Error 403 - Forbidden

You don鈥檛 have permission to access this page [CSRF]

But registration module is native with freshrss right ? So I don't forgot update it when I update frashrss ? :sweat_smile:

So I have FreshRSS version 1.14.2 with Swage theme.

Can you help me ? :)

Regards

Critical Security

Most helpful comment

Ah, indeed, I can reproduce too

All 11 comments

I also encountered the same situation. @Alkarex

I've made some tests. I can reproduce. I search the code to find where this is triggered. At the moment, I don't know where. It's located deep in Minz because the process does not even enter the called method.
So far I am out of luck!

@aledeg Could you please tell the sequence to reproduce?

@Alkarex it's very easy. You increase the number of allowed user to be greater than the current number of user. Then you logout and try to create a new user from the login page. And then 403!

Ah, right. @Dryusdan and @wangz1yu : do you believe it is the same issue you are facing?
In which case, we should probably just change the UI to e.g. remove the registration field when there are too many users already.

I'm not remember if I increase number of allowed user.
This value is set to 150 (at the start of my instance there is 100 user allowed). But I have only 41 users registed so... The registeration form does appear.

Capture d鈥櫭ヽran du 2019-06-21 09-17-15

I try with 0 in allow user (unlimited so) and I have the same error.

@Alkarex I don't think it's a UI error. You cannot register new users even though there are some spots left.

Ah, indeed, I can reproduce too

Here is a candidate fix https://github.com/FreshRSS/FreshRSS/pull/2442
Tests welcome

Merged in the /dev branch. Tests welcome

It's work, thank you ! :D

Was this page helpful?
0 / 5 - 0 ratings