Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add plugin: Block details while not login #143

Merged
merged 1 commit into from Jul 15, 2023
Merged

add plugin: Block details while not login #143

merged 1 commit into from Jul 15, 2023

Conversation

taozhiyu
Copy link
Contributor

No description provided.

@ozh
Copy link
Member

ozh commented Jul 8, 2023

Not sure I get it. This is how YOURLS works out of the box, see for instance https://ozh.in/sgfi+

@ozh ozh closed this Jul 8, 2023
@taozhiyu
Copy link
Contributor Author

taozhiyu commented Jul 8, 2023

Anyone can attempt to log in via the page with the +, even if the backend admin page has been changed.

This plugin blocks non-backend path login events, reducing the risk of backend brute force attacks.

eg:

Even if I moved the admin page, such as DOMAIN/home,

it is still possible to bypass the background path with a short connection with + (like your link above),

After using the plugin it looks like this

Because there is no nonce output, even if a post request is constructed, no authorisation can be obtained.

@taozhiyu
Copy link
Contributor Author

taozhiyu commented Jul 8, 2023

@ozh Could you please check again? I don't know if it's because I didn't express myself clearly?

@ozh ozh reopened this Jul 15, 2023
@ozh ozh merged commit b312b1c into YOURLS:main Jul 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants