Home > Articles > Security > General Security and Privacy

Security Analysis of a Scan-to-PC Solution

📄 Contents

  1. Security Analysis of a Scan to Desktop/PC Solution
  2. Exploiting Scan to PC/Desktop Applications
Network copier/printer/scanners that upload scanned documents to your desktop are a green, efficient, and productive digital solution. However, all these benefits could come with a cost that you might not be willing to pay: remote access into your PCs. Seth Fogie provides a Security Analysis of "Scan-to-PC" solutions and highlights several security issues that need to be addressed before implementation.
Like this article? We recommend

Office productivity solutions have evolved greatly over the last 10 years. However, along with this evolution comes an increasingly more complex web of connections and processes that hide the technical details from the users. One technology that has greatly helped offices go paper free are "scan to desktop" solutions that can create a digital duplicate of a hardcopy and transfer it directly to the users desktop, specified email account, or file server. While these solutions are an excellent way to help an office go green, the software that drives the file transfer process should raise some red flags with regards to how the data is moved from the scanner to desktop and how it is saved there. In this article we are going to provide a look at one solution provided by Kyocera Mita that not only gives someone a chance to upload spoofed documents to the designated scan folder, but also gives a remote attacker direct write access to the system's file system.

Kyocera Mita

Kyocera Mita is an international manufacture of digital imaging devices based out of Japan. In addition to its line of printers, facsimiles, copiers and multifunction devices, Kyocera Mita also produces a collection of software programs that are meant to be used along side the printing/copying/scanning devices to "optimize your Kyocera products' performance and capabilities to achieve maximum return on your company's investment."

Included with these software solutions are programs that enhance color, manage forms, capture documents for workflow purposes, scan to LDAP controlled email accounts as well as to PC, MAC and FTP, and a host of programs for encrypted, authenticated printing and secure document management.

Finally, Kyocera Mita has designed their product offering to be as modular as possible. Since the same general firmware and interface options are available on the entire product line, it is easy to move from one device to another with little in the way of a learning curve. As a result, it is just as likely that a small business using an entry level KM-1650 could have the same software installed as an enterprise using the much faster and powerful KM-7530.

In this article we are going to focus on the scan to PC/desktop component and examine several security issues that we discovered in this solution that you might want to leave disabled. Use this article as guide when evaluating any scan to PC solution to ensure your documents and client PCs are secure.

Scan to PC

In the multifunction machines offered by Kyocera, the user is given software to allow them to scan a document at the copier/scanner and have it automatically be sent to their desktop PC. There are numerous benefits to such a solution, such as reducing the amount of wasted paper and having an instant digital copy for storage.

In order to facilitate the file transfer process, the end user is required to install a listener on their computer that accepts and manages the incoming documents. This program, known as the "Scanner File Utility," can either run on the desktop or sit in the background as a service. Regardless, the program has a simple interface through which the user can configure the options and manage the download process. Figure 1 shows the main screen.

Figure 1

Figure 1: Kyocera File Utility Program

From this screen, the user can directly open the file or the folder location where documents are received. Files that have not been opened are displayed in red font, which will turn to black once viewed through the utility.

The Setup options are basic. First a user must know their ID number, which is established by the administrator and programmed into the copier. Second, they need to determine where on the local PC they want the documents to be downloaded. Third and last, the user can specify a password that is used by the copier during the scanning process.(figure 2).

Figure 2

Figure 2: Configuration options

This feature, while very useful, brings with it a number of security issues that need to be addressed. For example, how can a user prevent someone from uploading random scan to their PC? Does the document transfer process provide an audit trail? Is there an authentication mechanism built into the client to prevent a spoofed transfer process? Can the client be tricked into receiving a file other than a PDF? These question, and more, need to be asked for any scan to desktop solution.

Attacking the Scan to PC

The following will take a look at the bugs and flaws found in the Kyocera Mita scan to PC solution. We will first describe the problem and then illustrate how the Kyocera solution fails to address the issue and then we will finally demonstrate how the flaw can be exploited.

Spoof User Identification

In today’s business world, having inappropriate, insulting or derogatory content on a computer can quickly lead to a harassment issues, or worse. It only takes one marginally questionable image or file for HR to get involved, which typically also affects an employee’s reputation and value to the company. As a result, any solution that grants remote file upload abilities to a user's PC needs to have some sort of reliable auditing capabilities built into the file transfer process.

Figure 3

Figure 3: Registration screen on copier

Kyocera has a rudimentary identification system in their file transfer process that is built into how the copier communicates with the desktop PC. Specifically, the copier requires an account to be created locally via a web interface, which is incorporated into the scan to PC option (figure 3). Since there could be numerous users, Kyocera also allows the administrator to assign each account a password to prevent someone from sending a document in another user’s name. While all this is appears to solve the problem, it actually leaves a loophole in the process because the client is forced to assume the identification data coming from the copier is trustworthy. However, what if the incoming data wasn’t from a copier?

The following provides the details of the first few packets transferred during the file upload process.

From Client

00000000 4f 4b 00 05                   OK..

From Copier

00000000 00 06 34 00 00 02 00 00             ..4..... 

From Client — tells copier what type of format to use

00000004 00 6a 34 10 00 01 00 10 00 1b 00 25 00 00 00 00 .j4..... ...%....
00000014 00 00 54 49 46 46 2d 47 34 4d 4d 52 00 50 44 46 ..TIFF-G 4MMR.PDF
00000024 2d 47 34 4d 4d 52 00 54 49 46 46 2d 47 33 4d 48 -G4MMR.T IFF-G3MH
00000034 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000044 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000054 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000064 00 00 00 00 00 00 00 00 00 00 00 00       ........ ....

From copier — tells client name of user

00000008 02 1c 34 02 00 01 00 08 00 0d 41 41 41 41 00 4e ..4..... ..AAAA.N
00000018 53 4e 5f 53 4b 41 4e 3a 53 45 54 48 00 00 00 00 SN_SKAN: SETH....
00000028 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000038 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000048 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000058 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........

If you note, in the last packet listed you can see that there is a clear plaintext value associated with the communication session. The value "SETH" is what the user has assigned as the sender from the copiers interface. However, what if this value is altered by a proxy program or via a spoofed injection process? Figure 4 provides an illustration of how easy it is to change the value.

Figure 4

Figure 4: Spoofing the identification

The end result is that the identification component of this solution is spoofable and can not be trusted. In addition to identification purposes, it is generally a standard operating procedure to have strong audit controls in any enterprise. The reasoning is built around having deniability and a record of activity that can be referred to if something is found to be awry. Since the identification can be altered without detection, any auditing value of the utilities sender list is questionable.

Identification Enumeration

One additional aspect of the Kyocera solution that appears to provide identification is the user number, which is highlighted in figure 3. This number is shared between the copier and the File Utility, which means the incoming request to the listener must contain a locally valid identification number before it will accept the file.

While this value is passed as plain text, and as such could be sniffed, it is actually possible to deduce the correct identification number remotely via enumeration. Specifically, a program can send in a request that contains the ID of 1, if it fails then the client will respond with a fail code. An attacker can continue guessing 2-3-4-5, etc. up to 100, which is as high as it goes. Eventually, they will get a success message and know a valid account number. The following represent a pass/fail response.

00 0a 34 11 00 00 3e 40 ff ff ff ff - no account
00 0a 34 11 00 01 00 00 ff ff ff ff - valid account

Bypass Authentication Restriction

As previously mentioned, Kyocera does provide some authentication mechanisms in their solution. First, the administrator can lock the account on the copier to keep users from borrowing another user’s account to send the file. Second, the File Utility can be configured to request an additional password for permission to upload a file. While this process would prevent someone from using a copier to upload a document, the access code is not verified by the File Utility — only the copier. The following summarizes the file upload process:

Copier to PC – OK to send?
PC to Copier – Yes. Please send file types of PDF and TIFF.
Copier to PC – OK. This is the users name and ID for auditing purposes.
PC to Copier – OK. This is the password required for that ID.
(Copier now prompts user for correct password.)
Copier to PC – OK. This is the file name.
Copier to PC – Here is the file.
Copier to PC – All done!
PC to Copier – OK!
Copier to PC – OK!

The problem with this is that the File Utility makes the assumption that the only way a file can be transferred to the listener is through the copier. Unfortunately, this is not true, and as a result the loophole will allow unauthenticated uploads.

Unauthorized Access to Authentication Information

In addition to bypassing the password, the previously described authentication procedure contains a logic error that can be exploited to steal the password directly from the File Utility. Specifically, there is no preliminary authentication information given to the client before it sends the password to the copier. Combine this with the fact that the file initialization process can be spoofed, and it is trivial for someone to ask the File Utility for its password. Figure 5 illustrates both the ID enumeration and password extraction in action via a Metasploit module we prepared for testing.

Figure 5

Figure 5: Metasploit Kyocera Auxiliary Module

So, at this point, an attacker can enumerate the ID, gain access to the password data, and bypass authentication requirements incorporated into the scan to PC solution. Next week we will continue our security review of this program and illustrate how the flaws discussed in this week’s section can be used to upload fake documents and more.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020