Bug 789352

Summary: Attempts to access disallowed pages should throw error to admin notifications.
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: WebUIAssignee: Partha Aji <paji>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: bkearney, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-03 16:21:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Corey Welton 2012-02-10 14:55:00 UTC
Description of problem:
If a user tries to access a page to which s/he has no permissions, an error should bubble up to the admin-level notification view.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.  Login as admin; visit the roles page and copy the URL; put it aside.
2.  Create a user with only System rights.  Login with this user
3.  Paste in the URL which goes to the roles page and attempt to access it.
4.  Logout and log back in as admin
5.  Go to notifications
  
Actual results:
User gets permission denied
Nothing sent to notifications.

Expected results:
We should log invalid access attempts in notifications. Such notifications do not necessarily need to be accessible from said user's notifications view, but should be available to any admins. Something like

"Permission denied to page 'katello/roles' for user 'bobbytables'

Additional info:
Beyond being a catch for 'devious' behavior, this might be useful for noting legitimate attempts, i.e., perhaps there's a wiki somewhere that tells users they need to access $foo URL. They click it, login, and are greeted with a permission denied.  An admin seeing a slew of these in the notifications log might be able to quickly determine whether a user is legitimately lacking proper permissions.

Comment 1 Mike McCune 2012-05-16 21:00:22 UTC
Logfile is fine but I really don't think this should create popup notification messages for admins of the site.  This could end up causing notification spam and would generally be considered very annoying.

If someone was running a script to find vulnerabilities in the site you could get 1000s of notifications.

Permission denied errors should be logged but NOT stored as a notif