nerdexam
CompTIA

CAS-005 · Question #186

A security administrator is reviewing the following code snippet from a website component: A review of the inc.tmp file shows the following: Which of the following is most likely the reason for…

The correct answer is A. A content management solution plug-in has been exploited. The code snippet includes obfuscated PHP code that loads and executes content from a temporary file (inc.tmp) via hex2bin(file_get_contents(...)), often seen in web malware injections. This strongly suggests that a CMS plug-in has been exploited to inject malicious code into…

Submitted by joshua94· Mar 6, 2026Security Operations

Question

A security administrator is reviewing the following code snippet from a website component:

A review of the inc.tmp file shows the following:

Which of the following is most likely the reason for inaccuracies?

Exhibits

CAS-005 question #186 exhibit 1
CAS-005 question #186 exhibit 2

Options

  • AA content management solution plug-in has been exploited.
  • BA search engine's bots are being blocked at the firewall.
  • CThe relevant stylesheet has become corrupted.
  • DThe WAF is configured to be in transparent mode.

How the community answered

(37 responses)
  • A
    54% (20)
  • B
    14% (5)
  • C
    5% (2)
  • D
    27% (10)

Explanation

The code snippet includes obfuscated PHP code that loads and executes content from a temporary file (inc.tmp) via hex2bin(file_get_contents(...)), often seen in web malware injections. This strongly suggests that a CMS plug-in has been exploited to inject malicious code into the website.

Community Discussion

No community discussion yet for this question.

Full CAS-005 Practice