Support

Admin Tools

#21315 Can't log out of admin

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 28 October 2014 12:37 CDT

user13238
Just downloaded Admintools 3.3.1 (per Ticket #21312) and installed onto a Joomla 3.3.6 site. Everything whet great and have no issues however, I can not log out of the admin portal. When I click onto the Logout option within admin all I get is a page refresh with no logout.

I re-installed Admintools v3.1.1 and aside from the Admintools upgrade notice, everything works and I am able to log out of the admin portal. I again re-installed Admintools 3.3.1 and getting the same issue of not being able to logout of admin.

Suggestions?

Thanks for your assistance as always!
Ed

nicholas
Akeeba Staff
Manager
Please tell me which of the following features have you got enabled:
  • Administrator password protection
  • Administrator secret URL parameter
  • Custom administrator directory name
  • Administrator IP whitelist

This will help me try to reproduce the issue and track it down.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user13238
Nick,

Thank for your reply and assistance! Here are my settings as requested;

Administrator password protection - Yes
Administrator secret URL parameter - Yes
Custom administrator directory name - No
Administrator IP whitelist - Yes (with seven IP's listed)

If you need site or FTP access, just let me know and I can private them to you.

Ed

nicholas
Akeeba Staff
Manager
Are you sure you are running Admin Tools 3.3.1? I cannot reproduce this. Can you please right-click on the logout link, choose Copy URL and paste it here? It should look something like
http://www.example.com/administrator/index.php?option=com_login&task=logout&e1c455cc850466c35819f3905f561a5d=1
The last part with the 32 meaningless characters will be different every time you log out, but the option and task parameters MUST be exactly the same every time. If the URL is different then there is a bug in your administrator template.

Also check whether you are using any plugins which may be automatically log you in, e.g. based on your IP address. There was a bug in Admin Tools 3.1.x and earlier regarding logging out of admin. When trying to log you out a security exception would be raised and you'd be kicked back to the site's home page. This bug is fixed in Admin Tools 3.3.1 and now when you log out you will be redirected to http://www.example.com/administrator/index.php?your_secret_word as it has always been intended. However, if you have a plugin which automatically logs you in to your administrator section then accessing the back-end login page will log you back in automatically. I suspect this is the case.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user13238
Nick,

Yes, I am using Admintools 3.3.1 and the log-out URL I copied was;

http://www.MYDOMAIN.com/administrator/index.php?option=com_login&task=logout&8e0593e6ed4ef0b585b09a17660d4a05=1

(replaced domain name with alias)

Based on your last paragraph I unpublished 'NoNumber IP Login - Free Version' plugin and was able to log-out properly. I would really like to continue to use this plugin but I'll keep it unpublished and let you and Peter duke this one out! ;-)

Ed

nicholas
Akeeba Staff
Manager
Peter proposed this login by IP as a core feature. As many people told him, it is a bad idea. Just a summary of the top reasons:
  • You can never log out because it will log you in as soon as you log out
  • The IP address can be spoofed trivially by a real hacker (I could tell you if you are interested, but NOT in a public ticket)
  • Logging in by IP address is a zero factor authentication method, meaning that it sidesteps the username, the password and your two factor authentication code. This makes it extremely prone to cross site request and side channel attacks. Simply put, if anyone can get you to hit a URL on a server they have access to from your computer they can spoof the IP to automatically log in as you and they they own your site.


So, let me put on my best Dirty Harry voice and say "I know what you're thinking. Did he log my IP address just now, or did he not? Well, to tell you the truth I kinda lost track myself. But this is a login plugin based on IP, the easiest thing to be spoofed and will log me in as a Super User to your very own site's administrator area. You've got to ask yourself one question. Do I feel lucky? Well, do you, punk?" Please, don't tell me that you need to know ;) Context: http://www.youtube.com/watch?v=8Xjr2hnOHiM#t=107

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user13238
Nick,

Thanks for the follow-up and words of wisdom! Installing this plugin with Admintools 'password protection' & 'secret URL parameter' made me believe I'd be OK. Will have to re-think this feeling and move forward. Thanks for taking the time in resolving this issue.

Ed

nicholas
Akeeba Staff
Manager
You're welcome :)

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!