Skip to content

Organizations: compromise team read access by another team with write access #3135

Closed
@imolein

Description

@imolein
  • Gitea version (or commit ref): 1.3.1
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04.3
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

Steps, how I noticed this:

  • Create an organization and an organization repository
  • Create team, with read access on code, issues, pull requests and releases and add a user to it
  • The user now has read access on repository, as defined
  • Now create a second team with only write access on wiki and add the same user as in the previous created team
  • Now the member has write rights on the whole repository

My intention was to create a team which has read access on code, issues, pull requests and releases and write access on wiki, but I noticed I can't do this in one team, so I thought teams are more like access roles and I can define multiple, with different rights and add the users to all of this teams (am I wrong on this?). So I do the steps as described above and found this weird behavior.
Even if I understand the rights management completely wrong, it shouldn't be possible to compromise the rights of one team, by creating another one with the same member, especially not when team one gives access to different parts of the repository as team two.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions