mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[PR #290] Fix banking packet exploit, & setup for a future of preventing packet exploits #9548
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/2006-Scape/2006Scape/pull/290
State: closed
Merged: Yes
Right now, while you can't open a bank unless you're physically in the coords, you can still deposit items with a very finnicky script someone shared with me. This prevents that for both bank booths and deposit boxes, and allows for future expansion to prevent other interfaces from being packet exploited.
TL;DR - Use
Player.lastMainFrameInterfaceto verify that the player actually has that interface. Previously, the client could just lie to the server by sending packets saying "Oh yeah, this interface is open, and I want to do that". This allows a server-side check to deny that.