Temporarily block Cattiva dig sync to prevent build permission bypass#3282
Temporarily block Cattiva dig sync to prevent build permission bypass#3282QuiCM merged 1 commit intogeneral-develfrom
Conversation
7c28bb6 to
6132ba0
Compare
Greptile SummaryThis PR adds a targeted server-side block for Key points:
Confidence Score: 5/5Safe to merge — the fix is a narrow, well-targeted one-state guard with no side-effects on other gameplay paths. The change is minimal (8 lines), correctly uses ConsoleDebug (prior concern resolved), the floating-point comparison against 3f is exact-representable and safe for wire-read values, and the guard is placed before the plugin hook so no accidental bypass is possible. No P0/P1 issues found. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant C as Client (attacker)
participant S as TShock Server
participant T as Terraria World
C->>S: ProjectileNew (PalworldMinionCattiva, ai[0]=3 dig state)
Note over S: HandleProjectileNew<br/>type == PalworldMinionCattiva && ai[0] == 3f?
alt Exploit blocked (this PR)
S-->>S: ConsoleDebug log + return true (drop packet)
Note over T: PickTile NOT executed<br/>Build permissions preserved
else Before this PR
S->>T: OnNewProjectile → PickTile executed
Note over T: Tile destroyed, bypassing<br/>build permission checks
T-->>C: KillTile broadcast to all clients
end
Reviews (2): Last reviewed commit: "Block Cattiva dig sync to prevent build ..." | Re-trigger Greptile |
Co-authored-by: RuyouSunshine <221790696+RuyouSunshine@users.noreply.github.com> Co-authored-by: LaoSparrow <laosparrow@outlook.com>
6132ba0 to
6f4441b
Compare
|
@greptile-apps review |
lost-werewolf
left a comment
There was a problem hiding this comment.
Looks good and should function perfectly. Hopefully this is patched by ReLogic.
Temporarily block Cattiva dig sync to prevent build permission bypass
Vanilla Exploit
AI_067_FreakingPirates_HitIntentionlacks an owner check. This causes the Server and all Clients to execute the PickTile logic.PickTile, bypassing build permissions.PickTilelogic and send KillTile packets.This exploit should be reported to Re-Logic.