Exploit database

Vulnerability

CVE-2017-17562

Vulnerability details

Score
8.1
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

Embedthis GoAhead before 3.6.5 allows remote code execution if CGI is enabled and a CGI program is dynamically linked. This is a result of initializing the environment of forked CGI scripts using untrusted HTTP request parameters in the cgiHandler function in cgi.c. When combined with the glibc dynamic linker, this behaviour can be abused for remote code execution using special parameter names such as LD_PRELOAD. An attacker can POST their shared object payload in the body of the request, and reference it using /proc/self/fd/0.

CVE Program

Exploit source choices

5 sources
GoAhead Web Server LD_PRELOAD Arbitrary Module Load
MSF-linux--http--goahead_ldpreloadMetasploitLinux,Unix / remote

This module triggers an arbitrary shared library load vulnerability in GoAhead web server versions between 2.5 and that have the CGI module enabled.

2017-12-18goahead_ldpreload.rb
ivanitlearning/cve-2017-17562
GH-ab2bd0ff767fc0c13e9260cefb08eaeeGitHubUnofficial GitHub source

Standalone Python 3 exploit for CVE-2017-17562

2019-10-161 file · 10 stars
nu11pointer/goahead-rce-exploit
GH-71887f4cf2aecbf544024d0d28515c00GitHubUnofficial GitHub source

Exploit for CVE-2017-17562 vulnerability, that allows RCE on GoAhead (< v3.6.5) if the CGI is enabled and a CGI program is dynamically linked.

2021-11-141 file · 8 stars