Main Content
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 privilege relinquishment fails, an attacker can regain elevated privileges and have more access to your program than intended. This security hole can cause unexpected behavior in your code if left open.
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 |
Version History
Introduced in R2016b
See Also
Topics
- Interpret Bug Finder Results in Polyspace Desktop User Interface
- Interpret Bug Finder Results in Polyspace Access Web Interface (Polyspace Access)
- Address Results in Polyspace User Interface Through Bug Fixes or Justifications
- Address Results in Polyspace Access Through Bug Fixes or Justifications (Polyspace Access)