This seems to be a massive security floor in Drupal. I have the following display suite code in a Block which is added as a custom field to the User account display:-
<?php
global $user;
$uid = arg(1);
$user = user_load($uid);
$roles = $user->roles;
if (in_array('RoleName1', array_values($roles))) {
print "<a href='/xyz'><img src='/sites/default/files/image.png' style='max-height:200px;max-width:200px;'></a>";
}
if (in_array('RoleName2', array_values($roles))) {
print "<a href='/xyz'><img src='/sites/default/files/image.png' style='max-height:200px;max-width:200px;'></a>";
}
?>
It checks for a couple of Roles and shows an image if they have a particular Role.
When an anonymous user now loads a user account page, they are logged in as that user! Visiting "/user/1" means they are logged in as the admin user!!!