-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
bugSomething isn't workingSomething isn't workingdiscussiondiscussiondiscussiongood first issuegood first issuegood first issuesecurity
Description
Search before asking
- I had searched in the issues and found no similar issues.
What happened
- Dependent type task does not check user permissions. Users could use dependent task to query the project / workflow / task lists of other users'.
What you expected to happen
- Dependent type task should do permission checks.
How to reproduce
- Create user A with project A, workflow A and task A.
- Create user B.
- Use user B to login DS and create a dependent task. In
add dependencysection, user B could query the project / workflow / task list of user A.
Anything else
related code:
Lines 802 to 815 in 5c1edd2
| /** | |
| * query all project for dependent node | |
| * | |
| * @return project list | |
| */ | |
| @Override | |
| public Result queryAllProjectListForDependent() { | |
| Result result = new Result<>(); | |
| List<Project> projects = | |
| projectMapper.queryAllProjectForDependent(); | |
| result.setData(projects); | |
| putMsg(result, Status.SUCCESS); | |
| return result; | |
| } |
Lines 188 to 191 in 5c1edd2
| <select id="queryAllProjectForDependent" resultType="org.apache.dolphinscheduler.dao.entity.Project"> | |
| select code, name | |
| from t_ds_project | |
| </select> |
Version
dev
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdiscussiondiscussiondiscussiongood first issuegood first issuegood first issuesecurity
