CyberRota Analysis
AI-GeneratedThe GoRest starter kit, specifically versions prior to 1.12.2, is vulnerable due to a race condition in the nMemorySecret2FA component, which uses an unsynchronized package-level map for storing 2FA secrets. This flaw allows attackers to exploit concurrent access to the map, potentially crashing the application and leading to significant availability issues. Organizations utilizing affected versions should prioritize upgrading to version 1.12.2 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
GoRest is a Golang starter kit built with the Gin framework for prototyping and developing RESTful APIs. In versions prior to 1.12.2 nMemorySecret2FA contains a race condition due to an unsynchronized package-level map used to store 2FA secrets. Multiple HTTP handlers in handler/login.go and handler/twoFA.go read from and write to this map concurrently, and because Go's runtime treats unsynchronized concurrent map access as an unrecoverable fatal error, an attacker can repeatedly trigger this condition to crash the process on demand. This results in high, repeatable availability impact with no confidentiality or integrity consequences. This issue has been fixed in version 1.12.2.