microsoft / microsoft/ProcMon-for-Linux

Consider checking the real user id as opposed to the effective user id.

Open
#35 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
4.7k
Forks
295
Avg merge
2d 9h
Merged PRs (30d)
9

Description

https://github.com/microsoft/ProcMon-for-Linux/blob/ad86920331dda3315538ab0ee30fb24727aff82d/src/procmon.cpp#L17

line 17 checks the effective uid, signalling it's ok to come from a set user id root environment. However, right under it there's a call to system(), which clearly signals this code has no business being used in such an environment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/procmon.cpp line 17 and inspect the nearby system() call and UID check. Confirm how the current effective-UID check behaves in a set-user-ID root environment, then update the check so the issue's requested real-user-ID behavior is satisfied and verify that such an environment is rejected.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.