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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastLogin incompatible on Bungee-like systems #21

Open
Laurenshup opened this issue Apr 27, 2021 · 12 comments
Open

FastLogin incompatible on Bungee-like systems #21

Laurenshup opened this issue Apr 27, 2021 · 12 comments
Assignees
Labels
bug Something isn't working high priority This bug/suggestion needs high priority

Comments

@Laurenshup
Copy link
Collaborator

The issue has been reported at:
games647/FastLogin#516

@Laurenshup Laurenshup added bug Something isn't working medium priority This bug/suggestion needs medium priority labels Apr 27, 2021
@Laurenshup Laurenshup self-assigned this Apr 27, 2021
@Laurenshup
Copy link
Collaborator Author

I am in need of more information about this issue. BotSentry is definitely cancelling the PreLoginEvent of BungeeCord. FastLogin should not do any checks.

@Laurenshup Laurenshup added the question Further information is requested label Apr 27, 2021
@SrBedrock
Copy link

If you need any information like log let me know, I will try to help as much as possible

@Laurenshup
Copy link
Collaborator Author

If you need any information like log let me know, I will try to help as much as possible

Any logs are welcome. Also can you say which version of BotSentry you are using?

@SrBedrock
Copy link

image

@SrBedrock
Copy link

Logs: https://mclo.gs/4ugqi3b

@Laurenshup
Copy link
Collaborator Author

@SrBedrock Can you give me the line number in which you think the attack started?

@SrBedrock
Copy link

It was already occurring, the log is after a restart to disable a plugin that was causing problems, they will probably solve the problem soon so I hope. If you want the previous logs let me know, but the server was inaccessible due to the amount of requests with the mojang and database by the anti-vpn system.

@Laurenshup
Copy link
Collaborator Author

So. BotSentry did not have any problems with FastLogin? Because it does not seem so.

@games647
Copy link

I am in need of more information about this issue. BotSentry is definitely cancelling the PreLoginEvent of BungeeCord. FastLogin should not do any checks.

@Laurenshup Is your plugin performing the checks asynchronous. Then setting the cancelled state could occur after the event already fired for other plugins.

@Laurenshup
Copy link
Collaborator Author

@Laurenshup Is your plugin performing the checks asynchronous. Then setting the cancelled state could occur after the event already fired for other plugins.

Nope, the plugin checks both synchronous/asynchronous. But inside of the PreLoginEvent, it always does the basic checks (checking if IP is in blacklist, etc.) synchronous therefore it also sets the cancelled state synchronous.

@Laurenshup
Copy link
Collaborator Author

Some updates about this issue. The API in the upcoming versions, will use CompletableFuture, allowing for thread-blocking on PreLoginEvent by other plugins. This will help them to check for the BotSentry status first.

Further it seems like FastLogin uses the normal Priority on Bungee. BotSentry uses the lowest, meaning, BotSentry will come first.

@Laurenshup Laurenshup added invalid This doesn't seem right bug Something isn't working and removed question Further information is requested bug Something isn't working medium priority This bug/suggestion needs medium priority labels Jan 27, 2022
@Laurenshup
Copy link
Collaborator Author

A customer, has experienced this bug. And the best way to solve this problem is by directly implementing into the FastLoginBungee API.

@Laurenshup Laurenshup reopened this Mar 23, 2022
@Laurenshup Laurenshup added high priority This bug/suggestion needs high priority and removed invalid This doesn't seem right labels Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority This bug/suggestion needs high priority
Projects
None yet
Development

No branches or pull requests

3 participants