This Metasploit module exploits two security issues in Github Enterprise, version 2.8.0 - 2.8.6. The first is that the session management uses a hard-coded secret value, which can be abused to sign a serialized malicious Ruby object. The second problem is due to the use of unsafe deserialization, which allows the malicious Ruby object to be loaded, and results in arbitrary remote code execution. This exploit was tested against version 2.8.0.
33f3404a6f4b774f58398937b9ab21c5dca1aec64058a30c79123e17a7208e17
GitHub Enterprise versions 2.8.x prior to 2.8.6 suffer from a remote code execution vulnerability.
a342b81ed2b1e63765a37c303b794cf55451aad19482eabd0f5853af68b78e2b