This post describes how I discovered a defect which allowed me to gain higher privilege than I was supposed to as a normal user. When testing an application I came across a use case when a privileged user would be allowed to delete a team and non privileged user would not be. Delete operation is controlled by displaying of a link. This is how it looks like for a privileged user - And this is how it look for a non privileged user - Here “Delete team” link is missing for non privileged user. Having a look at html source code, I found following for the privileged user - <a class="delete right" data-bind="if: teamProfile().type() != 'official', click: deleteTeam" href="https://test.com/" title="Delete this team">Delete team...</a> And following for the non privileged user - <a class="delete right" data-bind="if: teamProfile().type() != 'official', click: deleteTea...