Time to login is less than 1 second

truongphuocnt

New member
Joined
Jul 12, 2016
Messages
2
[Playing foolish]

I rented a vps DirectAdmin. I was very eager for new system.
And after changing some parameters of the system. Now, DirectAdmin auto log out directly after login. Time to login is less than 1 second.
I consulted support from vendor. And, they told to reinstall that DirectAdmin but not free.
I still login ssh normally.
Please help me!
Thanks for reading! And sorry for my english is not good.
 
Hello,

Try and visit page: http://canihazip.com/s and refresh it several times. Does IP change on page refresh? Or is constant after 10 refreshes?

If an IP changes then you might consider disabling IP check (is not recommended as it's insecure): https://www.directadmin.com/features.php?id=443 or try and use VPN to have a constant IP if your ISP does not provide constant IPs.

Other issue might be related to cookies: https://www.directadmin.com/features.php?id=1765 Make sure you've got the latest Directadmin versions (it is 1.50.1 currently).
 
Try to run DA in debug mode: http://help.directadmin.com/item.php?id=293

Once running in debug mode, try to reproduce the error and post here the result, maybe we can find out what's wrong without reinstalling ;)

Also, maybe to reinstall you may try this: http://help.directadmin.com/item.php?id=29
You will need your CID and LID to do this procedure.

Regards

I did as you instruct me. Try to run DA in debug mode: http://help.directadmin.com/item.php?id=293

And this is the result:

Code:
Sockets::handshake - begin
Sockets::handshake - end
/CMD_LOGIN
 0: Accept-Encoding: gzip, deflate
 1: Accept-Language: vi-VN,vi;q=0.8,fr-FR;q=0.6,fr;q=0.4,en-US;q=0.2,en;q=0.2,de;q=0.2
 2: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
 3: Cache-Control: max-age=0
 4: Connection: keep-alive
 5: Content-Length: 65
 6: Content-Type: application/x-www-form-urlencoded
 7: Cookie: session=
 8: Host: 103.7.41.92:2222
 9: Origin: http://103.7.41.92:2222
10: Referer: http://103.7.41.92:2222/CMD_LOGIN
11: Upgrade-Insecure-Requests: 1
12: User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/51.0.2704.103 Safari/537.36
Post string: username=admin&password=***hidden***&submit=&referer=%2FCMD_LOGIN
Session file written: /usr/local/directadmin/data/sessions/da_sess_***hidden***
Sockets::handshake - begin
Sockets::handshake - end
/
 0: Accept-Encoding: gzip, deflate, sdch
 1: Accept-Language: vi-VN,vi;q=0.8,fr-FR;q=0.6,fr;q=0.4,en-US;q=0.2,en;q=0.2,de;q=0.2
 2: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
 3: Cache-Control: max-age=0
 4: Connection: keep-alive
 5: Cookie: session=***hidden***
 6: Host: 103.7.41.92:2222
 7: Referer: http://103.7.41.92:2222/CMD_LOGIN
 8: Upgrade-Insecure-Requests: 1
 9: User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/51.0.2704.103 Safari/537.36
Checking referer http://103.7.41.92:2222/CMD_LOGIN to 103.7.41.92:2222
Referer check matches the login form page: http://103.7.41.92:2222/CMD_LOGIN
Command::run: finished /
executeAsUser('/usr/local/bin/php', 512, admin, 1, '<?php
$data = <<<END
<a href="/CMD_PLUGINS_ADMIN/csf/index.html">ConfigServer Firewall&Security</a>
END;
if (strlen($data) > 1)
{
echo <<<END
<a href="/CMD_PLUGINS_ADMIN/csf/index.html">ConfigServer Firewall&Security</a><br>
<br>
<br>
<br>

END;
}
?>
', int *child_pid, *snd, group=(null)) uid=501 gid=502
/php: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
executeAsUser('/usr/local/bin/php', 512, admin, 1, '<?php
$data = <<<END
<img src="CMD_PLUGINS_ADMIN/dplswsda/images/dp.png" /><a href="/CMD_PLUGINS_ADMIN/dplswsda/index.html">DPLiteSpeedDA Manager</a>
END;
if (strlen($data) > 1)
{
echo <<<END
<img src="CMD_PLUGINS_ADMIN/dplswsda/images/dp.png" /><a href="/CMD_PLUGINS_ADMIN/dplswsda/index.html">DPLiteSpeedDA Manager</a><br>
<br>
<br>
<br>

END;
}
?>
', int *child_pid, *snd, group=(null)) uid=501 gid=502
/php: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

Disturb you to see and help me. Thank you!
 
Last edited by a moderator:
... You just pasted your plain text password here, remove that and change your password ASAP - might as well reinstall as you have no idea what anyone that saw the password could've done to the box. All sites on the server could be compromised now.
The issue itself is most likely related to the theme. You use a custom skin, try resetting it to the default. I tested the login - The logout/redirect comes from a javascript.
 
Back
Top