×

Warning

JUser: :_load: Unable to load user with ID: 43

JUser: :_load: Unable to load user with ID: 40

UBIQUITI - Security bug

Detecting and removing

router ubnt
Reacting to the revealed vulnerability, we released ISPadmin, version 4.20, which included a utility for detecting and curing infected Ubiquiti units. Due to the emergency situation we released the very first version of the utility quickly.

Now we are presenting the utility with enhanced functionalities.

alert icon Run the utility from ISPadmin console (connected via SSH) under root user, ISPadmin does not detect anything automatically!

/usr/local/script/ispadmin/ubnt_vulnerability_test.pl

 

When running the utility without any parameter, help is displayed.

terminal help

 

Check devices from ISP admin bookmark ROUTERS
/usr/local/script/ispadmin/ubnt_vulnerability_test.pl check <username> <username2> <username3> <username4> <username5> - show ONLY vulnerable and infected ROUTERS ( AP )


Tests all Ubiquiti units inserted in Hardware Routers. If you run this command, the system tries to attack the unit, and if it succeeds, the console displays information with IP address and firmware version. If the system succeeds in connecting to Ubiquiti unit, it tries to determine whether there is the virus or not. If yes, it displays such information in the console. Nothing else. When 10 units are tested, a dot appears on the screen to show you that the script is still running and testing other units.


Check devices like AP ....( may take a long time )
/usr/local/script/ispadmin/ubnt_vulnerability_test.pl checkdevices <username> <username2> <username3> <username4> <username5>
  - show ONLY vulnerable and infected devices ( Acces points )


Tests all devices inserted as “Device attached to device” in Hardware Routers. In this case, the utility doesn´t care about device type since such information might not be available here. The utility tries to attack all IP addresses. If there are a lot of devices in your system, this might take a long time.

Check END USER devices ....( may take a long time )
/usr/local/script/ispadmin/ubnt_vulnerability_test.pl checkusers <username> <username2> <username3> <username4> <username5>
    - show ONLY vulnerable and infected client end device


Tests all IP addresses assigned to clients. The system tests all client-assigned IP addresses for it does not know whether a client has Ubiquiti device, or not. This operation might take a long time, since all IP addresses in the system are tested.

Clean INFECTED devices ( from previous check )
/usr/local/script/ispadmin/ubnt_vulnerability_test.pl cleaninfected
   - show vulnerable and infected devices and  REMOVE infection


If an infected unit is detected in the previous step, you may clean it this way. This operation connects to and cleans just those units, which are marked as infected. It means that prior to this step you have to run the utility with parameters check, checkdevices, or checkusers. Failing this no units are marked as infected and using parameter “cleaninfected” makes no difference.

 

terminal

A mandatory parameters are: check, checkdevices, checkusers, or cleaninfected. You may use user names, which you use for login to Ubiquiti units as an optional parameter. This is needed in cases when a key is stored in Ubiquiti unit after being attacked to enable login via ssh without password. You need to know the user name with which you connect to the system. If unknown, you won´t be able to connect. While running the vulnerability test, a default user name ubnt and user admin are tested. If you use neither of these, the script won´t be able to test vulnerability hence the need for entering a different username used for accessing the unit (no need for password). Then the system will try using these usernames.

 

Listing of UBNT units in ISPadmin

When you log into ISPadmin, you will see information about Vulnerability of UBNT devices:

ubnt upozorneni

 

In Other Tools > Vulnerability of UBNT devices, you will find a tool for displaying vulnerable devices as detected by the utility - see above.

ubnt seznam

 

alert icon Check the box at the end of each row (or check all, or you may use reversed selection) to select those devices, for which you want the system to update firmware - by clicking on on the bottom.

System back-ups

ISPadmin has an automatic data back-up functionality. It is possible to store...

MySQL database

Restart of MySQL service /etc/init.d/mysqld restart Recovery of database...

ISPadmin update

Switch to new system version using the following command from command line (logi...

Postfix mail server

By default, the SMTP server is configured in the way that it is only possible...

System Variables

System variables are used for replacing items such as client's name, address,...

System migration

The information contained in this manual pertains to the migration of ISPadmin ...

Emails cannot be sent because of their size

Check and modify the settings of the following parameters: upload_max_f...

Ramdisk and RRD backup-data restoration

More on RAM disk here (index.php?option=com_content view=article id=508:4-11-bet...

HTTPS Certificates

These are instructions on how to create and set up trustworthy certificates (h...

Crashed table repair

these instructions (index.php?option=com_content view=article id=1284:system-bac...

Moving graphs to RAMDISK

The main usage load for disks, on which the system is installed on, is the gener...

Forgotten root password

You can try two ways: First procedure 1. Insert installation DVD of ISPa...

Text editors

Nano text editor is always used in this documentation. If you don&rsquo;t...

Linux update

For reasons of compatibility and availability of future versions of ISPadmin,...

ISPadmin serving as SMTP server

By default, the SMTP server is configured in the way that it is only possible to...

Cache-only DNS server

Caching-only is ready after installation of ISPadmin. It is sufficient to use IP...

Technical support status cannot be verified

If technical support cannot be verified, most likely it is due to DNS malfunc...

Administration of running processes

We recommend using htop program for easier monitoring of running process inst...

Timezone settings

"Europe/Prague” timezone is set by default. To change it, do the following:...

IPv6

ISPadmin does not currently support IPv6, it only supports IPv4. It is, of cours...

Configuration / update of IP Address

A) Temporary setting of IP address (until next Linux restart).Just add the fo...

High CPU load of ISPadmin server

Run htop command from the Linux console to determine the problems. With this ...

ISPadmin operation behind NAT

If you have your ISPadmin located on private network and wish to access it from ...

Manual update

If the Error 404: Not Found message appears during an update, it will be necessa...

Inner/outer address on ISPadmin server

The system is typically connected to the network by one network card only. Both ...

Running service check

If you need to find out if a certain process is running use the following comman...

Error "Allowed memory size of ... bytes exhausted ..."

Fatal error: Allowed memory size of ... bytes exhausted (tried to allocate ... b...

What is the directory structure in /usr/local/script/ispadmin/rrd_data?

headend ipaccount modem routers snmp switches user_devices wifi

«
»

CONTACT

NET service solution, s.r.o.
Žerotínova 3056/81a
787 01 Šumperk
Czech Republic