Executable .rdata section

ID PE118 Level ERROR Category Security

Description

The executable contains the .rdata section which is marked executable. This section is typically dedicated to read-only data and thus should be placed to read-only memory.

Having an executable .rdata section may make it easier for an attacker to exploit memory corruption vulnerabilities.

Mitigation

  • Make sure you are not merging sections with different memory access attributes.
  • Do not explicitly change memory attributes. If doing so, do not mark the .rdata section executable.

If using Visual C++:

Arguments

This rule has no output arguments.