Bug 789352 - Attempts to access disallowed pages should throw error to admin notifications.
Summary: Attempts to access disallowed pages should throw error to admin notifications.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
low
low vote
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-10 14:55 UTC by Corey Welton
Modified: 2014-09-18 16:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-03 16:21:34 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.