Weak OwnerGroup check in ReqProxy
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Start in src/DIRAC/RequestManagementSystem/Service/ReqProxyHandler.py around lines 162-167 and trace how a submitted Request dict is validated and then stored for execution. Reproduce a request with no OwnerGroup, then add coverage showing that the missing group cannot bypass the OwnerGroup check and that the original request data is handled safely.
Written by the indexing model from the issue text.
Description
Hi,
When a user sends a Request dict to ReqProxy they include the requested credentials in the task. This is verified to ensure they are an allowed value for the submitter's account:
However if the OwnerGroup is missing from the submitted request, the check passes with any Owner (overwriting the Owner/Group on the Request object). The Request object is then thrown away and the original JSON is stored for execution whatever Owner value was originally included in the requestDict (the OwnerGroup is left as None in the request).
As the permission checks on the called function are keyed by the group properties I don't think this is a security problem, but it would still be good to make it more robust just in-case anything changes in the future.
Regards,
Simon
- Dominant language
- Python
- Stars
- 126
- Forks
- 191
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DIRACGrid/DIRAC
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
[Bug]: RucioFileCatalogClient overrides rucio's builtin configuration for extract_scope mechanism OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100