Skip to main content

[CPANEL-39236] Login bug can cause services to restart

Comments

10 comments

  • quietFinn
    You are right, has happened to me a few times. :oops:
    0
  • cPanelAnthony
    Thanks for the tip! I am looking into this and will update this thread as soon as possible.
    0
  • cPanelAnthony
    Hello again! I am very sorry for the delay! I have been able to replicate this issue by forcing the server to log me out while following these steps. I will get a case open and update this thread as soon as I finish gathering information on this issue.
    0
  • cPanelAnthony
    We have opened an internal case to investigate this issue. You can keep track of it get more information by following this article.
    0
  • rolinger
    Coolio, thanks for jumping on it @cPanelAnthony
    0
  • rolinger
    @cPanelAnthony, I just read the article. It states that when "WHM detects an IP change it logs you out". Well, yes, that could happen too. But the issue can happen any time WHM forces an auto logout. Cookies expire, IP change, etc . My IP rarely changes but due to session/cookie timeout the logout/restart service occurs quite frequently during my dev testing (which often requires service restarts).
    0
  • rolinger
    Just happened again on my apache service. Any update on this?
    0
  • cPRex Jurassic Moderator
    Hey there! Our team did look into this issue and decided not to apply any fixes to workaround this problem. The explanation was that this is essentially the same as bookmarking a restart service page, such as /cpsessXXXXXXXX/scripts/reshttpd?confirm=1, as that would also trigger this behavior.
    0
  • rolinger
    This is a bad 'intended' behavior. This just happened to me again. Bookmarking a service `restart` makes no sense. I can understand book marking the page before clicking on a restart, but not book marking a page that has already triggered a restart. Logging directly into a `triggered` restart page causes the service to restart again. Besides, booking marking a `service restart` page isn't really a daily activity that one would need to book mark. And even if you did, after a day or so the system will auto logout a user. So to book mark a page means you must first login again but because you were logged out you didn't quite know what page you may have been left on - and suddenly you are accidentally restarting a service. At a minimum, the authentication process should check to see if its taking the user to a `service restart` page and leave the user on the page where it forces them to CLICK `restart service` - it shouldn't be automatically doing it. I urge your team to reconsider this. Logging in should never auto-trigger anything; its just bad design.
    0
  • cPRex Jurassic Moderator
    There isn't a way to workaround this. It's the same as when you make a purchase in a checkout and the page gives you the "do not refresh" warning. That's because if you do, it will send the signal to the server again, and you'll inadvertently make an additional purchase as many times as you refresh the page.
    0

Please sign in to leave a comment.