Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Security Management //

Encryption

6/18/2018
08:05 AM
Larry Loeb
Larry Loeb
Larry Loeb
50%
50%

Decades-Old Vulnerability Allows Spoofing of Encryption Tools

While GnuPG, Enigmail, GPGTools and python-gnupg have all patched the SigSpoof vulnerability, this old flaw shows how encryption tools can be spoofed.

Marcus Brinkmann, a security researcher, has announced that many of the most widely used email encryption tools have been vulnerable to signature spoofing since they were first used.

Not only that, the effects of the spoofing can be wider than just invalidating a particular message, Brinkmann writes.

GnuPG, Enigmail, GPGTools and python-gnupg have all been updated to patch this vulnerability (CVE-2018-12020), which Brinkmann has named SigSpoof.

The GNU Privacy Guard (GnuPG) is a complete and free implementation of the OpenPGP standard which is commonly abbreviated as PGP.

Brinkmann writes:

The signature verification routine in Enigmail 2.0.6.1, GPGTools 2018.2, and python-gnupg 0.4.2 parse the output of GnuPG 2.2.6 with a "--status-fd 2" option, which allows remote attackers to spoof arbitrary signatures via the embedded "filename" parameter in OpenPGP literal data packets, if the user has the verbose option set in their gpg.conf file.

That's pretty dense, but it unpacks well. The issue boils down to the fact that a user should not have "verbose" in gpg.conf. or use "gpg —verbose" on the command line. It's this verbose command that triggers the vulnerability.

Brinkmann found that GnuPG, with verbose enabled -- either directly on the command line or indirectly through the gpg.conf configuration file -- will print the "name of the encrypted file" field to stderr without escaping newline characters. There is no sanitation done at all to the name field that is being outputted to stderr.

This means that the attacker can inject fake GnuPG status messages into the application parser that follows GnuPG to spoof signature verification and message decryption results. This implies that the attacker can control the key IDs, algorithm specifiers, creation times and user IDs.

Worse, the attacker will not need any of the private or public keys involved to have this ability.


Now entering its fifth year, the 2020 Vision Executive Summit is an exclusive meeting of global CSP executives focused on navigating the disruptive forces at work in telecom today. Join us in Lisbon on December 4-6 to meet with fellow experts as we define the future of next-gen communications and how to make it profitable.

Now, if you are parsing GnuPG status output and you use a dedicated file descriptor with status-fd, you are safe. A dedicated file descriptor is one that is not shared with the log output.

One may also redirect the log output to a different file, such as "log-file /dev/null."

Also, a user can use --no-verbose when invoking gpg.

There are legitimate reasons for verbose to be enabled. Brinkmann notes that export users might be interested in the additional details that verbose provides. Beginners might run into problems that require verbose to solve.

Brinkmann also outlines a few programs that routinely use this feature of GnuPG. An email client, Gnome Evolution, will add --verbose to GnuPG invocations unconditionally. However, it does use a status file descriptor separate from stderr. This means it is not vulnerable to this attack.

Git verify-commit uses --status-fd 2 to create signatures, but it uses --status-fd 1 to verify detached signatures. Therefore, it is not vulnerable to the attack.

Somehow, this vulnerability escaped review for a long time. The community should be glad it has finally been caught.

Related posts:

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
COVID-19: Latest Security News & Commentary
Dark Reading Staff 8/10/2020
Researcher Finds New Office Macro Attacks for MacOS
Curtis Franklin Jr., Senior Editor at Dark Reading,  8/7/2020
Hacking It as a CISO: Advice for Security Leadership
Kelly Sheridan, Staff Editor, Dark Reading,  8/10/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Current Issue
Special Report: Computing's New Normal, a Dark Reading Perspective
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
The Changing Face of Threat Intelligence
The Changing Face of Threat Intelligence
This special report takes a look at how enterprises are using threat intelligence, as well as emerging best practices for integrating threat intel into security operations and incident response. Download it today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-16137
PUBLISHED: 2020-08-12
** UNSUPPORTED WHEN ASSIGNED ** A privilege escalation issue in Cisco Unified IP Conference Station 7937G 1-4-4-0 through 1-4-5-7 allows attackers to reset the credentials for the SSH administrative console to arbitrary values. Note: We cannot prove this vulnerability exists. Out of an abundance of ...
CVE-2020-16138
PUBLISHED: 2020-08-12
** UNSUPPORTED WHEN ASSIGNED ** A denial-of-service issue in Cisco Unified IP Conference Station 7937G 1-4-4-0 through 1-4-5-7 allows attackers to remotely disable the device until it is power cycled. Note: We cannot prove this vulnerability exists. Out of an abundance of caution, this CVE is being ...
CVE-2020-16139
PUBLISHED: 2020-08-12
** UNSUPPORTED WHEN ASSIGNED ** A denial-of-service in Cisco Unified IP Conference Station 7937G 1-4-4-0 through 1-4-5-7 allows attackers restart the device remotely through sending specially crafted packets. Note: We cannot prove this vulnerability exists. Out of an abundance of caution, this CVE i...
CVE-2020-16186
PUBLISHED: 2020-08-12
A stored Cross-site scripting (XSS) vulnerability in Firco Continuity 6.2.0.0 allows remote unauthenticated attackers to inject arbitrary web script or HTML through the username field of the login page.
CVE-2020-8904
PUBLISHED: 2020-08-12
An arbitrary memory overwrite vulnerability in the trusted memory of Asylo exists in versions prior to 0.6.0. As the ecall_restore function fails to validate the range of the output_len pointer, an attacker can manipulate the tmp_output_len value and write to an arbitrary location in the trusted (en...