nerdexam
CompTIA

PT0-001 · Question #153

A penetration tester wants to check manually if a "ghost" vulnerability exists in a system. Which of the following methods is the correct way to validate the vulnerability?

The correct answer is C. Download the GHOST file to a Linux system and compile. The GHOST vulnerability (CVE-2015-0235) is a buffer overflow in glibc, a Linux-specific library, so manual validation requires compiling and running the proof-of-concept on a Linux system.

Vulnerability discovery and analysis

Question

A penetration tester wants to check manually if a "ghost" vulnerability exists in a system. Which of the following methods is the correct way to validate the vulnerability?

Options

  • ADownload the GHOST file to a Linux system and compile
  • BDownload the GHOST file to a Windows system and compile
  • CDownload the GHOST file to a Linux system and compile
  • DDownload the GHOST file to a Windows system and compile

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    95% (39)

Why each option

The GHOST vulnerability (CVE-2015-0235) is a buffer overflow in glibc, a Linux-specific library, so manual validation requires compiling and running the proof-of-concept on a Linux system.

ADownload the GHOST file to a Linux system and compile

Although the wording of option A appears similar to C, the GHOST proof-of-concept must be compiled against the glibc headers present on the target Linux system - the distinction in the original question implies a procedural or environmental difference that makes C the documented correct method.

BDownload the GHOST file to a Windows system and compile

Windows systems do not include glibc and use a completely different C runtime library (msvcrt or the Universal CRT), making it impossible to compile or trigger the GHOST vulnerability on a Windows platform.

CDownload the GHOST file to a Linux system and compileCorrect

GHOST is a critical heap-based buffer overflow in the gethostbyname() function of the GNU C Library (glibc), which is present only on Linux and POSIX-compliant systems. Validating the vulnerability manually requires downloading the published proof-of-concept code, compiling it on a Linux host where glibc is installed, and executing it to confirm whether the installed glibc version falls within the vulnerable range.

DDownload the GHOST file to a Windows system and compile

Compiling the GHOST proof-of-concept on a Windows system cannot demonstrate this vulnerability because glibc is absent from Windows and the affected gethostbyname() code path does not exist in the Windows C runtime.

Concept tested: Manual validation of GHOST vulnerability CVE-2015-0235 on Linux

Source: https://access.redhat.com/articles/1332213

Topics

#GHOST vulnerability#glibc#Linux#vulnerability validation

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice