Making groups in any project without permission
A user could create a group inside another user's public project by intercepting the group-creation request on their own project and swapping the project identifier in the URL for the victim's project identifier. The server did not check that the requester had permission on the target project, so the group was created on the victim's side.
- Triaged in 9 hours
- Fixed in 22 hours
- Disclosed after 23 hours
Something Interesting happening here !! ;)
Steps to reproduce :
- Suppose User1 have Public Project called http://www.localize.io/v/8h
- In public project any other user ll not have permissions to edit project
- Now User2 want to make a group in http://www.localize.io/v/8h which is unlikely not possible .
- Soo what now ?? :P
- User2 ll go to his any own project and edit the project like (http://www.localize.io/pages/create_project/3F) and he ll create a new group there , while creating the new group intercept the request and change it with http://www.localize.io/v/8h
- Bang !! The group ll be created on User1 side .
Request (From User2 side) :
POST /pages/create_project/3F HTTP/1.1 Host: www.localize.io User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:28.0) Gecko/20100101 Firefox/28.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://www.localize.io/pages/create_project/82 Cookie: PHPSESSID=srdrqpfu6k679bna6e2rtrsrq7 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 84
CSRFToken=NTc4NTUxMjY1MzUxZTllOGIwYWM4MC4yMjE1MjUxNw%3D%3D&addGroup%5Bname%5D=Test
Now he ll change the POST /pages/create_project/3F with POST /pages/create_project/8h
and send the request and group ll be created on User1 side .
Take a look and lemme know if you need more info .
Daksh
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server used the project identifier from the request to decide where to create the group but never verified that the requesting user had permission on that project.
What the attacker needed
Victim has a public project; ability to intercept requests
How it was found
- Note a public project belonging to another user, where you have no edit rights.
- Open one of your own projects and start creating a new group there.
- Intercept the group-creation request.
- Replace the project identifier in the request with the victim's project identifier.
- Send the request; the group is created in the victim's project.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A website lets people make projects, and each project can contain groups. The site trusted the project number sent in the request without checking whether the person sending it actually owned that project. By changing that number to someone else's project, the attacker could add a group to a project they had no rights over.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.