CVE-2017-16005: Input Validation

Published Jun 4, 2018
·
Updated

Affected versions of http-signature contain a vulnerability which can allow an attacker in a privileged network position to modify header names and change the meaning of the request, without requiring an updated signature.

This problem occurs because vulnerable versions of http-signature sign the contents of headers, but not the header names.

Proof of Concept

Consider this to be the initial, untampered request: http POST /pay HTTP/1.1 Host: example.com Date: Thu, 05 Jan 2012 21:31:40 GMT X-Payment-Source: src@money.com X-Payment-Destination: dst@money.com Authorization: Signature keyId="Test",algorithm="rsa-sha256",headers="x-payment-source x-payment-destination" MDyO5tSvin5...

And the request is intercepted and tampered as follows: http X-Payment-Source: dst@money.com // Emails switched X-Payment-Destination: src@money.com Authorization: Signature keyId="Test",algorithm="rsa-sha256",headers="x-payment-destination x-payment-source" MDyO5tSvin5...

In the resulting responses, both requests would pass signature verification without issue. src@money.com\n dst@money.com\n

Recommendation

Update to version 0.10.0 or higher.

Other sources

Http-signature is a "Reference implementation of Joyent's HTTP Signature Scheme". In versions <=0.9.11, http-signature signs only the header values, but not the header names. This makes http-signature vulnerable to header forgery. Thus, if an attacker can intercept a request, he can swap header names and change the meaning of the request without changing the signature.

Affected Software

2 affected componentsFixes available
npm/http-signature<0.10.0
0.10.0
Joyent Http-signature Node.js<=0.9.11

Event History

Jun 4, 2018
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
DescriptionWeakness
Nov 9, 2018
Advisory Published
05:49 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2017-16005?

CVE-2017-16005 is a vulnerability in the HTTP Signature Scheme implementation in versions <=0.9.11 of Joyent's http-signature.

2

What is the severity of CVE-2017-16005?

The severity of CVE-2017-16005 is high with a CVSS score of 7.5.

3

How can an attacker exploit CVE-2017-16005?

An attacker in a privileged network position can exploit CVE-2017-16005 to modify header names and change the meaning of the request without updating the signature.

4

Which versions of http-signature are affected by CVE-2017-16005?

Versions <=0.9.11 of http-signature are affected by CVE-2017-16005.

5

How can I fix CVE-2017-16005?

To fix CVE-2017-16005, update to version 0.10.0 or higher of http-signature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203