Privilege drop not verified
Attacker can gain unintended elevated access to program
Description
This defect occurs when you relinquish privileges using functions such as
setuid but do not verify that the
privileges were actually dropped before exiting your
function.
Risk
If you do not verify that privileges were properly dropped after relinquishing them, an attacker may exploit the opportunity to regain elevated access, potentially compromising system security.
Fix
Before the end of scope, verify that the privileges that you dropped were actually dropped.
Examples
Result Information
| Group: Security |
| Language: C | C++ |
| Default: Off |
Command-Line Syntax:
MISSING_PRIVILEGE_DROP_CHECK
|
| Impact: High |
PQL Name:
std.defects.MISSING_PRIVILEGE_DROP_CHECK
|
Version History
Introduced in R2016b
See Also
Topics
- Interpret Polyspace Bug Finder Results in Polyspace Platform User Interface
- Interpret Bug Finder Results in Polyspace Access Web Interface (Polyspace Access)
- Address Polyspace Results Through Bug Fixes or Justifications
- Address Results in Polyspace Access Through Bug Fixes or Justifications (Polyspace Access)