Skip to content
  • Rate limit · GitHub

    Access has been restricted

    You have triggered a rate limit.

    Please wait a few minutes before you try again;
    in some cases this may take up to an hour.

  • Notifications You must be signed in to change notification settings
  • Fork 1k

/tpaccept accepting first request instead of latest request. #4753

Closed
@accLarson

Description

@accLarson

Type of bug

Exploit

/ess dump all output

https://essentialsx.net/dump.html?id=a37828c4cf6946daa5103059ff358ae6

Error log (if applicable)

No response

Bug description

When a playerX accepts a tpa request /tpaccept, if playerX has multiple requests, the first request is accepted rather than the latest (expected behaviour). Players are using this to maliciously spam a few requests out and hope the requested players get a second request from some trusted player and accept. (which would then accept their request).

A temporary sort of bandaid fix for my case is to set tpa-accept-cancellation to 5 rather then our usual 60. Shortening this window allows for less abuse.

I should note that if playerX has 2 requests and the first times out and the second is still live, when the playerX accepts, the first message they receive is that the first players request has timed out followed by a message indicating they accepted the second players request; the tpa of the second player goes through.

Steps to reproduce

PlayerX, PlayerY, PlayerZ

  1. PlayerY executes/tpa PlayerX
  2. PlayerZ executes/tpa PlayerX
    Both requests should not be timed out so set tpa-accept-cancellation accordingly
  3. PlayerX executes /tpaccept

Expected behaviour

PlayerZ's request should be granted.

Actual behaviour

PlayerY's request is granted

Activity

added
bug: confirmedConfirmed bugs in EssentialsX.
module: mainIssues or PRs for the main Essentials module
and removed
bug: unconfirmedPotential bugs that need replicating to verify.
on Jan 15, 2022
added this to the 2.20.0 milestone on Jan 15, 2022
added a commit that references this issue on Feb 6, 2022
ddc258e
modified the milestones: 2.20.0, 2.19.3 on Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: confirmedConfirmed bugs in EssentialsX.module: mainIssues or PRs for the main Essentials module

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      /tpaccept accepting first request instead of latest request. · Issue #4753 · EssentialsX/Essentials