Pass gets a fail: Simple Password Store suffers GnuPG spoofing bug

Brinkmann files third signature spoof vulnerability in a month

Security researcher Marcus Brinkmann has turned up another vulnerability in the GnuPG cryptographic library, this time specific to the Simple Password Store.

Brinkmann explained that CVE-2018-12356 offers both access to passwords and possible remote code execution.

This bug is an incomplete regex in GnuPG's signature verification routine, meaning an attacker can spoof file signatures on configuration files and extension scripts (Brinkmann has dubbed the bug “SigSpoof 3” as the third signature spoofing bug he's found).

“Modifying the configuration file allows the attacker to inject additional encryption keys under their control, thereby disclosing passwords to the attacker. Modifying the extension scripts allows the attacker arbitrary code execution,” Brinkmann wrote in the advisory.

This looks like a relatively minor issue, but Brinkmann explained to The Register it could have far-reaching consequences.


GnuPG patched to thwart 'fake filename'


“First, my primary concern the last three weeks has been and still is that there may be critical infrastructure in the free software community that does insufficient signature verification with GnuPG. I have made some progress notifying the community about this problem, but this is still an ongoing investigation, and there will be updates to SigSpoof [to take care of bugs like this oneEl Reg] soon.”

While Brinkmann has complained about GnuPG disclosure processes in the past, he declined to comment further, telling The Register his focus is on notifying the community and fixing the code.

Explaining the bug at his NeoPG blog, Brinkmann wrote that it arose out of two weak design choices in GnuPG and Pass: “Pass matches the GnuPG status message VALIDSIG (indicating a valid signature and corresponding key details) at any position within a line in the output; [and] GnuPG emits the primary user ID of a signing key at the end of a GOODSIG status line, without escaping whitespace.”

(NeoPG is Brinkmann's “opinionated fork” of GnuPG 2, designed to “clean up the code and make it easier to develop”.)

Independent security researcher Jason Donenfeld announced the fix for Pass here, and the code is available here.

One of those contributing to GnuPG fixes is Mauritian developer Logan Velvindron, part of the team whose work on TLS 1.3 we've previously covered.

Velvindron told us it's hard to identify just how many downstream projects inherit a vulnerability like the one Brinkmann spotted, but the number of problem projects will likely be non-trivial because the GnuPG cryptographic suite has applications beyond e-mail protection.

“We're working with Marcus to push as many fixes as we can,” he said, listing projects such as Bitcoin, Litecoin, and the Dash shell as examples.

Brikmann's new bug is the third found in GnuPG in the last few weeks, so The Register asked Velvindron why such a cluster of bugs has been detected within such a short space of time.

Velvindron suggested “It's because everybody has been parsing GPG the same way, not thinking about questions like 'What are the issues with verbose output?', and 'What if this string is somewhere else?'”

As well as Logan, participants in the GnuPG work include Codarren Velvindron, Nitin Mutkawoa, Rahul Golam, Kifah Meeran and Nigel Yong. ®

Similar topics

Broader topics

Other stories you might like

  • Telegram adds paid tier as it cracks 700 million users
    Without so much as a mention of encryption, but with a pastel-hued emoji-heavy nod to ‘sustainable monetization’

    Messaging app Telegram, which came to prominence for offering end-to-end encryption that irritated governments, has celebrated passing 700 million active monthly users with a pastel-hued announcement: a paid Premium tier of service.

    A Sunday post celebrates the 700 million user milestone by announcing a $4.99/month tier. The Premium tier distinguishes itself from the freebie plebeian tier with the ability to upload 4GB files, unthrottled downloads that come as fast as users' carriers will allow, and the chance to follow up to 1000 channels, create up to 20 chat folders each containing up to 200 chats, and to run four accounts in the Telegram app.

    Paying punters will also get exclusive stickers and reactions and won't see ads once they sign up to hand over coin each month.

    Continue reading
  • Protecting data now as the quantum era approaches
    Startup QuSecure is the latest vendor to jump into the field with its as-a-service offering

    Analysis Startup QuSecure will this week introduce a service aimed at addressing how to safeguard cybersecurity once quantum computing renders current public key encryption technologies vulnerable.

    It's unclear when quantum computers will easily crack classical crypto – estimates range from three to five years to never – but conventional wisdom is that now's the time to start preparing to ensure data remains encrypted.

    A growing list of established vendors like IBM and Google and smaller startups – Quantum Xchange and Quantinuum, among others – have worked on this for several years. QuSecure, which is launching this week after three years in stealth mode, will offer a fully managed service approach with QuProtect, which is designed to not only secure data now against conventional threats but also against future attacks from nation-states and bad actors leveraging quantum systems.

    Continue reading
  • Cheers ransomware hits VMware ESXi systems
    Now we can say extortionware has jumped the shark

    Another ransomware strain is targeting VMware ESXi servers, which have been the focus of extortionists and other miscreants in recent months.

    ESXi, a bare-metal hypervisor used by a broad range of organizations throughout the world, has become the target of such ransomware families as LockBit, Hive, and RansomEXX. The ubiquitous use of the technology, and the size of some companies that use it has made it an efficient way for crooks to infect large numbers of virtualized systems and connected devices and equipment, according to researchers with Trend Micro.

    "ESXi is widely used in enterprise settings for server virtualization," Trend Micro noted in a write-up this week. "It is therefore a popular target for ransomware attacks … Compromising ESXi servers has been a scheme used by some notorious cybercriminal groups because it is a means to swiftly spread the ransomware to many devices."

    Continue reading

Biting the hand that feeds IT © 1998–2022