Skip to content

Conversation

@MrPMan
Copy link

@MrPMan MrPMan commented Jan 4, 2016

This pull request:

  1. Allows users with users_mod to always view the last seen of other users
  2. Fixes an inconsistency with the calls to check_paranoia in sections/friends/friends.php
  3. Removed an unnecessary check in check_perms

MrPMan added 4 commits January 3, 2016 23:48
Fix my own exploits now that they're publicly disclosed
Fixes a coding inconsistency that allowed users with users_mod to always view LastSeen, which is intended behavior, but it worked for the wrong reasons.
Users with users_mod always get PARANOIA_OVERRIDDEN for lastseen. This means moderators can now see the LastAccess for higher-ranked staff members, like they should have always been able to.
$UserInfo['Level'] will never be higher than $UserInfo['EffectiveClass'], as that's the whole point of EffectiveClass. As such, it is pointless to run a comparison against both Level and EffectiveClass in check_perms, as $UserInfo['EffectiveClass'] >= $UserInfo['Level'], so if $UserInfo['Level'] >= $MinClass, $UserInfo['EffectiveClass'] >= $MinClass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant