-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Mailbox steal depot items bug, crash OTS bug [clone items] #4536
Comments
I made PR with fix for TFS 1.4: #4537 |
I can confirm, the problem is present on master! |
confirmed the bug exists in the newest tfs server |
do you mean it still exist or was it fixed with #4538 ? |
IT STILL EXISTS after applying the code. Although cloning items is impossible because it says "Sorry, not possible" but... server crashes sometimes when you open depo. |
@floki21uu |
By saying other player I mean player who opened the same depo before the second player. I use TFS master. I will have to make a youtube video because GIFs are too heavy, |
Is this still a problem? |
I think this one fixed it fix: close parcel send thru mail system to other player #4538 I don't know for sure though. |
@floki21uu can you update us on this, unless there is no video or better detailed description I'll close this as others mentioned it to be fixed. |
I am pretty sure this is not fixed. Seems there are other ways to get around the fix in postremovenotification.. a more thorough investigation and fix is likely needed. |
We know what happened: We know why it happened: We expect that this fix works: Anyway, if anyone know some way around that fix please post reproduction scenario or |
Yeah I tested it today myself. It indeed does resolve this, even when the parcel is on the ground, if multiple players have it open and someone else moves it, even if you address the parcel to yourself, literally tested all the ways that I could think of and it worked every single time! |
Tested on TFS 1.4
Steps to reproduce
You will need:
Test 1 is random guy who visits depot.
Test 2 is attacker who wants to steal items/crash OTS.
How to reproduce:
Now Test 2 can steal items of Test 1.
If Test 1 logouts and Test 2 try to move item in Test 1 depot, it will crash server.
I also heard about people who were able to clone items without crashing server on otservbr, but I cannot reproduce it on TFS.
Problems:
Step 1 binds Test 1 item Inbox position to position on which player opened locker last time.
Step 5 checks, if item moved is within 1 SQM range and does not close it. If mailbox and 'Test 1 Inbox' positions are within 1 SQM from player who sends parcel (Test 2), it does not close sent Parcel.
Looks like someone who added Inbox system in TFS forgot to copy code that closes containers, when they are moved into someone's depot. Inbox is not inside Depot Chest, so it does not protect parcels anymore.
Expected behaviour
Parcel gets closed in client.
Actual behaviour
Parcel stays open. You can click 'move up' in client and get into other player depot!
Reported by Christianlb on Discord. He asked me for help with crash analysis, then he found crash reason himself and told me how to reproduce it.
Already reproduced [abused] on top OTSes. Gunzodus solution: block possibility to send parcels, when you are within 1 SQM from Mailbox 😃
The text was updated successfully, but these errors were encountered: