Description
This 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.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/github/enterprise_secretmsf undefined(enterprise_secret) > show actions ...actions...msf undefined(enterprise_secret) > set ACTION < action-name >msf undefined(enterprise_secret) > show options ...show and set options...msf undefined(enterprise_secret) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub