Big Data. Big Decisions
InformationWeek
Special Coverage Series


Cisco Password Fumble: Hardware Security At Risk

Password implementation error results in easy-to-crack Type 4 passwords in latest versions of IOS and IOS XE operating systems that run Cisco's switches and routers.

Anonymous: 10 Things We Have Learned In 2013
Anonymous: 10 Things We Have Learned In 2013
(click image for larger view and for slideshow)
Cisco has released a security bulletin warning that a move to strengthen passwords on some devices resulted in making passwords much easier to crack.

The vulnerability affects recently released versions of the IOS and IOS XE operating system that runs on Cisco routers and switches. The problem stems from Cisco's use of the Type 4 password algorithm in the operating system, and its failure to salt – add random bits to -- passwords or use PBKDF2, which randomizes passphrases and adds a salt, thus deriving a cryptographic key that's more difficult to crack.

More Insights

Webcasts

More >>

White Papers

More >>

Reports

More >>

"Due to an implementation issue, the Type 4 password algorithm does not use PBKDF2 and does not use a salt, but instead performs a single iteration of SHA-256 over the user-provided plaintext password," said the Cisco security warning. "This approach causes a Type 4 password to be less resilient to brute-force attacks than a Type 5 password of equivalent complexity."

[ Curious about Cisco's long-term game plan? Read Cisco CTO: Internet Of Everything Much More Than SDN. ]

The flaw affects only devices that have been upgraded to versions of IOS or IOS XE that support Type 4 passwords, and only affects those devices' "'enable secret ' and 'username secret ' commands," according to the security advisory. "No other Cisco IOS or IOS XE features use this algorithm to hash passwords or keys." Previous versions of IOS and IOS XE used the Type 5 algorithm.

Some caveats about the vulnerability: Cisco said that Type 4 passwords must have been purposefully generated, because no preexisting passwords on its devices would have been automatically updated. "There is no automatic conversion of existing Type 5 passwords to Type 4 passwords after upgrading a device to a Cisco IOS or Cisco IOS XE release that has support for Type 4 passwords," said Cisco.

To mitigate the vulnerability, Cisco recommends organizations search for any Type 4 passwords they've generated, and replace them with Type 5 passwords, which Cisco's devices do generate correctly.

The Type 4 password weaknesses were reported to Cisco on March 12 by security researcher Jens Steube, who's the developer behind the Hashcat advanced password recovery tool, as well as beta tester Philipp Schmidt. They worked with Cisco on a "coordinated disclosure," which the company made just six days after receiving the pair's notification.

For context, Cisco devices don't store plain-text passwords, but rather a cryptographic hash of a password. With any attempt to authenticate to a device, after the password gets entered, it's run through the same one-way cryptographic password hashing algorithm, and the result is compared to the known-good hash that's already been stored. If the two hashes match, the newly entered password is legitimate.

Password hashes are designed to be one-way operations, meaning the hash shouldn't be able to be decrypted to reveal the original input. But in the case of Cisco's Type 4 password algorithm implementation error, the password hash is insufficiently random, meaning that an attacker able to obtain a password hash could crack it.

"In my eyes, for such an important company, this is a big fail," Steube told Ars Technica about Cisco's password security fumble. "Nowadays everyone in the security/crypto/hash scene knows that password hashes should be salted, at least. By not salting the hashes we can crack all the hashes at once with full speed."

For example, Steube studied a Cisco Type 4 password hash -- "luSeObEBqS7m7Ux97dU4qPfW4iArF8KZI2sQnuwGcoU" -- that he found posted to an online forum as part of a configuration file and was able to quickly crack it.

The Type 4 approach that Cisco had intended to take was to add an 80-bit salt to a plain-text password, then run it through a SHA-256 hash algorithm 1,000 times to produce a password that's very difficult -- in terms of required computational power and speed -- to decrypt, should the hash be obtained. As noted, Cisco's implementation only ran the password through the SHA-256 hash once, failed to add a salt, and failed to use PBKDF2 to apply a pseudorandom function to further strengthen password security. That left the resulting password hash less secure than if it had been hashed using existing Cisco's Type 5 approach, which ran a password through 1,000 iterations of the MD5 hash function.

Going forward, Cisco said that it will discontinue using Type 4 passwords, and recommended users stick to Type 5 passwords for now. "Future Cisco IOS and Cisco IOS XE releases will not generate Type 4 passwords," it said. "However, to maintain backward compatibility, existing Type 4 passwords will be parsed and accepted. Customers will need to manually remove the existing Type 4 passwords from their configuration."

Stay tuned, however, for Cisco's preferred Type 4 replacement. "A new password type will be introduced: This new password type will implement the original design intended for Type 4 passwords, which is PBKDF2 with SHA-256, an 80-bit salt, and 1,000 iterations," said Cisco. "The exact type is yet to be determined."

InformationWeek is conducting a survey on security and risk management. Take the InformationWeek 2013 Strategic Security Survey today. Survey ends March 29.



Related Reading




Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

BYTE encourages readers to engage in spirited, healthy debate, including taking us to task. However, BYTE moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing/SPAM. BYTE further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.

Follow InformationWeek

By The Numbers

What Are Your Primary Concerns About Using Big Data Software?

Base: 417 respondents at organizations using or planning to deploy data analytics, BI or statistical analysis software
Data: InformationWeek 2013 Analytics, Business Intelligence and Information Management Survey of 541 business technology professionals, October 2012

What Do You Think?

What's your attitude about SQL analysis on top of Hadoop?
We want fast, standard SQL analysis capabilities on Hadoop ASAP
Hadoop is for unstructured data; SQL is for relational databases
We'll give SQL on Hadoop a try, but relational DBs will remain the mainstay
Given strong SQL support on Hadoop, we'd nix the data warehouse
We're not interested in Hadoop
No opinion



Related Content

From Our Sponsor

Five Big Data Challenges and How to Overcome Them with Visual Analytics

Five Big Data Challenges and How to Overcome Them with Visual Analytics

Business leaders often need a visual snapshot of data to quickly grasp and use it. This paper identifies five challenges in presenting data and how visual analytics can resolve them. Solutions are suggested to overcome the challenges of: speed, data clarity, data quality, displaying meaningful results, and dealing with outliers.

Game-Changing Analytics: How IT Executives Can Use Analytics to Create Innovation and Business Success

Game-Changing Analytics: How IT Executives Can Use Analytics to Create Innovation and Business Success

Today's competitive advantage requires a deeper understanding of your business, your market and your customers. As an IT executive, you can drive that knowledge transformation. In this white paper, learn how to make decisions as a strategic business leader and three steps to begin an analytics initiative within your enterprise.

Data Visualization Techniques: From Basics to Big Data with SAS Visual Analytics

Data Visualization Techniques: From Basics to Big Data with SAS Visual Analytics

High-performance data visualization turns sophisticated analyses into meaningful graphics, leading to faster and smarter decision making. In this white paper, learn how visual analytics can transform big data, with additional features such as real-time functionality, mobile compatibility, robust applications for technical groups and accessibility for nontechnical users.

Big Data: Lessons from the Leaders

Big Data: Lessons from the Leaders

Financial performance, competitive advantage, operational efficiency, strategic decision making - every business goal can extract value from big data, and the time for doubt or inaction has long passed. In this Economist Intelligence Unit report, in-depth interviews with data pioneers reveal the link between the effective use of big data and the bottom line among other results.

Decision-Driven Data Management: A Strategy for Better Decisions with Better Data

Decision-Driven Data Management: A Strategy for Better Decisions with Better Data

Which came first, the data or the decision? This white paper makes the case for having a decision in mind, then tailoring big data's volume, variety and velocity to achieve business results such as overcoming customer dissatisfaction or creating well-informed strategies in real time.

Informationweek Reports

Research: The Big Data Management Challenge

Research: The Big Data Management Challenge

The challenge of big data is real, but most organizations don't differentiate 'big data' from traditional data, and nearly 90% of respondents to our survey use conventional databases as the primary means of handling data. We'll help you understand what constitutes big data (it's not just size) and the numerous management challenges it poses.