Skip to main content

Vicidial Too many login attempts try again in 15 minutes



  Issue Overview:

while logging into the vicidial admin portal, you may notice below alert

Too many login attempts, try again in 15 minutes: |6666|LOCK|Too many login attempts, try again in 15 minutes: |admin|LOCK|Too many login attempts, try again in 15 minutes: |xyzuser|LOCK|

  Root Cause for this issue

1. Vicidial Bruteforce Protection
    By default, Vicidial source code enabled with Brute force protection, which will Lock the User ID if 10 Failed Attempts detected and counter will be reset every 15 minutes.
2. Brute force Attack

    Due to recent Brute force attacks on vicidial servers with user-id 6666 or admin, you may notice the above said alerts.
or other users might entered wrong credentials more than 10 times.

  Workaround - Unlock user-ID

Temporary workaround you can Unlock the affected users by  following methods
Option 1:1. By running the below mysql command ,which unlock the particular userfor user 6666
mysql -e "use asterisk; update vicidial_users set failed_login_count='0' where user='6666';"

for user admin
mysql -e "use asterisk; update vicidial_users set failed_login_count='0' where user='admin';"

note: just replace user= with the user-id which is LOCKED.
if above Command fails run the below mysql cli commands
mysql -p
use asterisk
update vicidial_users set failed_login_count='0' where user='6666';
note: for vicibox mysql no password set , or use default mysql credentials mysql -ucron -p1234

Option 2:
2. If you have another Admin credentials, which is not Locked,  access the vicidial admin portal in another Browser and login with another admin credentials, Followed to that modify the affected user and press just submit, which will un lock that user.

  Permanent Workarounds:

Restrict the Vicidial Portal access by any of the below mentioned methods

  Use Vicibox Firewall, that is Dynamic Portal

 Using dynamic Portal or Vicibox Firewall, you can restrict the vicidial Admin /Agent portal access to the IP's which is white listed via dynamic Portal.

  Vicidial Allow IP Lists Feature

    Using the Allow IP lists Feature , you can restrict admin/agent/API access to the White Listed IP by admin for User Group wise.     Steps to enable Allow IP List and Restrict IP to whitelist per usergroups.Enabling Allow IP List      
Navigate : ADMIN > SYSTEM SETTINGS > Allow IP List : 1
Adding the IP's to white List.
Navigate : ADMIN > IP Lists 
Select : ViciWhite IP List , Activate it by Setting YES, Followed to that Added the IP which need to access or you can say list of White Listed IP's
Enabling the IP white list in User Groups.Navigate to Respective Usergroups ,Click ModifyUser Groups > ADMIN > Modify   and enable the below options
Admin IP Whitelist : ViciWhiteAgent IP Whitelist  : ViciWhiteAPI IP Whitelist      : ViciWhite

  Change the Default we directory Path of vicidial Portals

     The default path to access vicidial is https://serverip/vicidial/admin.php and for agent /agc/vicidial.php,
this is well known path.
Change this default path to some other path like https://serverip/xkskiiiww/vicidial/admin.php
so that only users who this path can access.

  Restrict the web access only to FQDN ,instead of Direct IP access

    As the Hackers try to access your server IP, instead of FQDN ,unless they know the FQDNyou can restrict the Web access only to FQDN.    

  Conclusion:

    The Failed Attempt trigger is mentioned in Functions.php under Vicidail webfolder

(cd /srv/www/htdocs/vicidial or cd /var/www/html/vicidial/)$LOCK_over = ($STARTtime - 900); # failed login lockout time is 15 minutes(900 seconds)
$LOCK_trigger_attempts = 10;

Comments

Popular posts from this blog

Vicidial Scratch installation Alma -9

Step 1 – Download the dependencies   hostnamectl set-hostname xxxxxx.xxxxx.xxx ### Use YOUR SubDomain vi /etc/hosts ##Change domain name for actual server ip (xxx.xxx.xxx.xxx   complete domain name    subdomain only) timedatectl set-timezone Asia/Kolkata yum check-update yum update -y yum -y install epel-release yum update -y yum install git -y yum install -y kernel* sudo dnf install kernel-devel-$(uname -r) -y #Disable SELINUX sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config     reboot Step 2 – Run the Script cd /usr/src/ git clone https://github.com/manish23k/vicidial-install-scripts cd vicidial-install-scripts chmod +x alma-rocky9-ast16.sh ./alma-rocky9-ast16.sh Or the Asterisk 18 version: chmod +x alma-rocky9-ast18.sh ./alma-rocky9-ast18.sh ####For PHP 8 use this script. chmod +x main-installer-php8.sh ./main-installer-php8.sh

Vicidial Scratch installation Debian 11 with Asterisk 16, WebRTC and Dynamic Portal

  Vicidial Scratch installation Debian 11  Asterisk 16, WebRTC and Dynamic Portal apt update apt upgrade apt-get install git nano wget cd /usr/src/ git clone https://github.com/manish23k/Vici_Install_Scripts_Deb_11.git cd Vici_Install_Scripts_Deb_11/ chmod +x *.sh Run ./vici_install_deb_ast16.sh Install WebRTC ./vicidial-install-webrtc.sh Once Done with Configuration Secure Server with Vici Dynamic Portal Run ./vici_dynportal.sh

How to delete old call logs and other logs in vicidial or goautodial.

Step 1 : SSH to the server using the Putty Step 2:   login to mysql by typing   mysql -p                    (if you dont know password try below command )               mysql -ucron -p1234 Step 3 : select the asterisk database by typing               use asterisk step 4: Run the below command to check total disk occupied by asterisk database                SELECT table_schema AS "asterisk", ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; Step 5 : Run the below command to check disk space consumed by each table in asterisk database SELECT table_name AS "Table", ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)" FROM information_schema.TABLES WHERE table_schema = "asterisk" ORDER BY (data_length + inde...