Effective strategies to improve the performance of DevOps teams

04.10.2024 8 minutes Author: Lady Liberty

Learn how to implement DevOps best practices, streamline processes, and improve team performance. Discover innovative tools to automate routine tasks, minimize errors, and accelerate product deployment. The article discusses the key aspects of setting up DevOps processes to achieve maximum productivity and flexibility.

Let’s start

In this article, we will look at the analysis of network printers/BFPs in companies. Many of you have probably seen these devices in every office or on the floor. This is dangerous because anyone, whether an employee, visitor or contractor, can gain access to such devices. Many companies do not configure these devices properly, making them a vulnerable part of the security system. The article has an exclusively educational purpose. The Red Team “GISCYBERTEAM” community is not responsible for the misuse of information.

Access

Let’s start with the first stage of device compromise – gaining access to the administrative panel. This can be done in several ways:

  • Through a wireless access point, if enabled.

  • By connecting directly to the printer via a cable.

A direct cable connection is faster because it does not require a password to access the printer’s subnet. You simply connect and access the web interface. For wireless hotspots, most manufacturers use standard passwords. For example, with manufacturers such as HP and Pantum, the default password is often 12345678.

If the standard passwords do not work, you can try your luck and intercept the handshake through a software solution Airgeddon .

An example of starting a handshake capture

After intercepting the handshake, you can try to guess the password using Aircrack-ng and hand-built dictionaries using crunch, or using already existing, well-known dictionaries.

Suppose we were given the task of testing the Customer’s infrastructure without physical access to the object. However, in many companies, printers with Wi-Fi Direct are installed on the border of the controlled zone, and this opens up the possibility of accessing them even without entering the Customer’s perimeter. Due to this vulnerability, it is possible to affect these devices remotely without directly violating the physical boundaries of the object.

Let’s run our Airgeddon solution while outside and do the following:

Let’s put our WiFi adapter in monitoring mode.

Switching the interface to monitor mode

Let’s search for the goal we need.

Tools menu for working with handshake/PMKID
Finding a purpose

Let’s send the command to Disconnect and intercept the handshake.

Successful capture of the handshake
The path to the cap file

Let’s choose a password based on a pre-prepared dictionary.

Password selection

As you can see, after choosing the password for WiFi Direct of our network printer, we got full access to it. Now you can seamlessly connect to the device and open the web interface of the administrative panel. This allows you to control all of the printer’s settings and possibly access important information that it processes or stores. This type of vulnerability can become a serious threat to the security of a company’s information system if adequate protection measures are not taken.

Bypassing weak password policies

Access to the settings of most MFPs is provided through a web interface.

An example of an authorization page

By default, these authorization systems often use standard logins and passwords. In most cases, these passwords are not changed to more complex and reliable ones before putting the devices into operation. This can be dangerous because standard credentials are usually easily available or can be guessed. To ensure adequate security, it is important to use passwords that are longer than 10 characters and include both uppercase and lowercase letters and special characters. Without such changes, network devices remain vulnerable to attack.

Below are the logins and passwords from the most common MFP manufacturers:

  • Pantum admin 000000

  • Epson epson epson

  • Epson EPSONWEB admin

  • Canon ADMIN canon

  • Kyocera Admin Admin

  • Xerox Admin 1111

  • Brother admin access

  • HP admin admin  або blank

Detailed information about standard logins and passwords for a specific model can be found in the online manual. If standard credential checks fail, you can brute force the password using Burp Suite Professional and pre-built dictionaries to automate the process.

Bruteforce password from the administrator

Collection of sensitive information

After gaining access to the admin panel and analyzing the printer/MFP settings, you can find public SMB resources and FTP servers accessible without a password through anonymous authorization.

Credential compromise through LDAP settings

Within this attack, consider another device — Konica Minolta Bizhub C224, which supports connection to the LDAP server. This allows you to check possible weak points in the configuration and try to gain access to user credentials.

Domain controller with created user accounts

Before starting the attack, configure the organization’s domain controller and create two accounts: share_printer and Ivanov_I.

So we have: AD server at 192.168.1.114 and printer at 192.168.1.119. According to the terms of the legend, access to the MFP web interface has already been obtained by one of the previously described methods. Now you can proceed to the attack.

Compromising an account to connect to an LDAP server

To begin with, we go into the settings of integration with the LDAP server through: Network -> LDAP Settings -> Setting Up LDAP, where you can check the established connection and start the analysis for the compromise of credentials.

LDAP server integration configuration
Successful validation of the connection to the LDAP server

The settings for this profile look like this:

GISCYBERTEAM profile settings

Let’s replace the original IP address with our 192.168.1.52, where we will deploy a fake LDAP server.

Changed GISCYBERTEAM profile settings

Let’s run the Metasploit Framework on our host and select the LDAP impersonation module to collect the authentication information of a client trying to authenticate to the LDAP service.

┌──(gorillahacker㉿GORILLAHACKER)-[~]
└─$ msfconsole

Metasploit Documentation: https://docs.metasploit.com/

msf6 > auxiliary/server/capture/ldap
msf6 auxiliary(server/capture/ldap) > set srvhost 192.168.1.52
srvhost => 192.168.1.52
msf6 auxiliary(server/capture/ldap) > run
[*] Server started.
The result of intercepting the login and password for connecting to the LDAP server

As you can see, we managed to get the password from the share_printer service account.

User account compromise through LDAP authorization

After a more detailed analysis of the MFP, in the section User Auth/Account Track -> External Server Settings -> External Server Settings, we found an entry indicating the connection of the user Ivanov_I via LDAP. This allows us to attempt to gain access to the user’s account and continue to compromise the system using existing connection information.

LDAP connection entry

We will also replace the source IP address with a fake address of 192.168.1.52. Now we wait for the user to try to connect to the web interface of our administrative panel. This will allow us to intercept data for further analysis and system compromise.

Connecting the user Ivanov_I via LDAP

As you can see below, we have successfully managed to hijack our user’s accounts.

The result of capturing the user’s login and password from authorization via LDAP

Mail account compromise through SMTP configuration

Let’s go back to our Pantum M6550NW printer and open the printer login settings on the SMTP server.

Connection data to the SMTP server

As you can see, our printer is already configured for server authorization, however access to passwords is restricted and we cannot see this information as it is hidden.

But there is a way to try to find out the password. To do this, we will perform the following actions:

Let’s raise the SMTP server through the Responder.

Launch Responder
Changing the SMTP server

We will send a test message to our address.

Sending a test message
Password interception

As you can see, our password appeared in one of the intercepted fields (although it was not exactly where expected =)).

So we compromised the email account and can now use it to:

  • compromise of the network (if it is still possible to connect from it);

  • enriching our vocabulary for brute force and spraying;

  • examining all emails in this mailbox regarding the compromise of infrastructure assets.

Conclusion

In this article, we looked at different options for compromising printers and MFPs and possible attack vectors for these devices. The information obtained during the activity can be used to further compromise the tested infrastructure. This allows you to identify weak points and increase the company’s security level, preventing similar attacks in the future.

Subscribe
Notify of
0 Коментарі
Oldest
Newest Most Voted
Found an error?
If you find an error, take a screenshot and send it to the bot.