MECCHA CHAMELEON Maps Enabled a Delayed RCE Through Arbitrary File Writes

· Original article ↗

Summary

Researchers demonstrated that a crafted MECCHA CHAMELEON map could exploit an exposed recording function to write a payload to the Windows Startup folder, enabling delayed RCE. The game fixed the issue in version 4.0.0.

Key points

  • MECCHA CHAMELEON maps can contain Unreal Engine Blueprints that run inside the game when loaded.
  • Researchers found the exposed Finish Recording Output function could write files to arbitrary filesystem paths.
  • A null byte in the filename bypassed Unreal’s automatic .wav suffix, allowing a chosen filename.
  • The proof of concept used controlled PCM audio data to place an HTA-compatible payload in the WAV file.
  • Writing the payload to the Windows Startup folder could enable remote code execution after a restart.
  • The developers fixed the issue in version 4.0.0; StopRecordingOutput no longer creates files.
  • The researchers reported finding no Steam Workshop maps exploiting this issue.

Article Details

Attack Vectors
  • A malicious community map runs Blueprint graphs when loaded in MECCHA CHAMELEON, calling the exposed StopRecordingOutput function to write files to arbitrary filesystem paths.
  • A null character in the supplied filename causes the file-writing path to discard the trailing text, allowing the payload to use an executable extension despite Unreal Engine appending .wav.
  • The attacker-controlled PCM samples contain an HTA script after the WAV header; mshta.exe can run the script, which uses WScript.Shell to start another process.
  • The proof of concept writes the payload to the Windows Startup folder so it can run after a system restart.
Defensive Notes
  • The vulnerability was fixed in MECCHA CHAMELEON version 4.0.0; the article says the update is automatically installed before the game launches.
  • The patched StopRecordingOutput function no longer creates files.
  • The researchers recommend playing only on official MECCHA CHAMELEON maps and exercising caution with custom maps.
  • The researchers report that they checked Steam Workshop maps and found none exploiting this issue.

MITRE ATT&CK

Products

Related Articles