Skip to content

Product improperly handles vehicles when operating on MC 1.12.2+, causing data and passenger duplication.

High
Pheotis published GHSA-64r2-hfr9-849j Apr 19, 2023

Package

maven net.TheDgtl.Stargate.Portal (Maven)

Affected versions

> 0.7.9.11

Patched versions

> 0.11.5.1 (Unified Legacy Versions / Rewritten Versions); and 0.10.9.X, 0.9.5.X (Post 1.12 ESR Releases)

Description

image

Scope:

  • All versions of StarGate running code that is derivative of Drakia's vehicle solution on 1.12.2+ instances.
  • As only versions above 0.7.9.11 are able to run on 1.12.2+, that is the earliest known version with this issue.
  • This issue impacts the default configuration and can be exploited by all players.

Method:

  • Minecarts with chests will drop their items when teleporting through a portal; when they reappear, they will still have their items.
  • This is likely a result of an antiquated transportation method, wherein the minecart is deleted and recreated instead of teleported.

Analysis:

  • The original method used for transporting vehicles was to delete their entity and recreate it at the intended destination.
    • Originally, when deleting an entity, its contents and passengers would be removed.
    • After MC 1.12.2, when deleted, an entity's contents and passengers drop.
  • Momentum issues impact the minecart's behaviour; in some cases, they will re-enter portals into a loop.

Details:

FROM NORTH:

  • If going WEST, dupes in WEST.
  • If going SOUTH, dupes in SOUTH.
  • If going EAST, dupes in EAST.

FROM SOUTH:

  • If going NORTH, switches to NORTH to SOUTH, then dupes south.
  • If going EAST, double dupes.
  • If going WEST, switches to WEST to SOUTH, then dupes SOUTH.

From EAST

  • If going WEST, switches to WEST to EAST, then dupes EAST
  • If going NORTH, switches to NORTH to EAST, then dupes EAST.
  • If going SOUTH, double dupes.

From WEST

  • If going EAST, dupes EAST.
  • If going NORTH, dupes NORTH.
  • If going SOUTH, dupes SOUTH.

Impacted Projects

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CVE ID

CVE-2021-43819

Weaknesses

Credits