Skip to content

HTTP 403 for invalid login - #1016

Merged
marienfressinaud merged 3 commits into
FreshRSS:devfrom
Alkarex:login403
Oct 27, 2015
Merged

marienfressinaud merged 3 commits into
FreshRSS:devfrom
Alkarex:login403

Conversation

@Alkarex

@Alkarex Alkarex commented Oct 25, 2015

Copy link
Copy Markdown
Member

#1015
And does not leak if user exists or not.
Must not use redirect to send status 403.

FreshRSS#1015
And does not leak if user exists or not
@Alkarex Alkarex added this to the 1.1.4-beta milestone Oct 25, 2015

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is no redirection ($redirect = false), rest of the code in the method is executed as well. Are you sure it does not cause more troubles?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, we need to return/exit after this line, then.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was problematic indeed. I have added a return.
The other two below should be fine.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realized: is this syntax valid with PHP 5.3?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted. It is indeed first PHP 5.5 that added support for accessing characters within string literals using []...
http://php.net/manual/en/language.types.string.php

FreshRSS#1016
FreshRSS#1015
It is first PHP 5.5 that added support for accessing characters within
string literals using []...
marienfressinaud added a commit that referenced this pull request Oct 27, 2015
HTTP 403 for invalid login
@marienfressinaud
marienfressinaud merged commit d677495 into FreshRSS:dev Oct 27, 2015
@Alkarex
Alkarex deleted the login403 branch October 27, 2015 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants