Home

Cisco Password Fumble: Hardware Security At Risk

Comments | Mathew J. Schwartz, InformationWeek | March 20, 2013 01:48 PM


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.

COMMENTS

Tune In to BYTE
Facebook Twitter LinkedIn Newsletter RSS
Whitepapers
whitepaper
In this paper you will learn the five trends shaping the future of enterprise mobility. Learn how the rise of social media as a business application, the lurring between work and home, the emergence of new mobile devices, the demand for tech savvy employees and changing expectations of corporate IT will fundamentally change the workplace.
whitepaper
In a survey of more than 1,700 information workers (iWorkers) in North America, notebooks, desktops, and smartphones were found to be “must-have” devices, while tablets, slates, and netbooks were relegated to “nice-to-have” status, according to a commissioned study conducted by Forrester Consulting on behalf of Dell and Intel.
Sponsored by: Dell
Upcoming Events