Skip to content
Crypto Disclosed report Intermediate CVE-2016-2107

formassembly.com is vulnerable to padding-oracle attacks.

The site's TLS stack was vulnerable to CVE-2016-2107, a padding-oracle flaw in OpenSSL CBC ciphersuites. An attacker able to observe and manipulate encrypted traffic could use the differing TLS alerts to learn information about the plaintext.

edoverflow Follow

Originally disclosed on HackerOne

Medium 5.9 View original
  • Fixed in 2 months
  • Disclosed after 2 months

Dear Formassembly bug bounty team,

Summary


formassembly.com is vulnerable to CVE-2016-2107, allowing remote attackers to obtain sensitive information via padding-oracle attacks.

$ git clone https://github.com/FiloSottile/CVE-2016-2107.git
$ go run main.go www.formassembly.com
... Vulnerable: true

The code above checks whether the TLS alert is DATA_LENGTH_TOO_LONG (vulnerable) or BAD_RECORD_MAC (not vulnerable).

What is CVE-2016-2107?


Filippo Valsorda, the author of the tool I used to discover this issue, wrote a fantastic article on CVE-2016-2107 here: https://blog.cloudflare.com/yet-another-padding-oracle-in-openssl-cbc-ciphersuites/

What are padding-oracle attacks?


During the decryption and the HMAC verification process the length of the padding is revealed. Padding-oracle attacks iterate over the padding of the cryptographic message, revealing the contents of the message.

More information


While I am at it I may as well let you know that you also support 1024-bit Diffie-Hellman keys. I would recommend using a 2048-bit Diffie-Hellman group.

Link to GitHub repo: https://github.com/FiloSottile/CVE-2016-2107 Link to online test: https://filippo.io/CVE-2016-2107/

Yours sincerely, Ed

The original report as published on HackerOne, by edoverflow. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an outdated OpenSSL version with the CBC padding-oracle flaw described in CVE-2016-2107, where a bad padding check returns a different TLS alert than a bad message authentication code.

Impact

An attacker who can act as a man in the middle could potentially recover sensitive information from encrypted traffic, though the report does not demonstrate an actual data leak.

What the attacker needed

Attacker can observe and modify TLS traffic; server uses vulnerable OpenSSL CBC ciphers

The fix

The reporter recommends using a 2048-bit Diffie-Hellman group; the text does not state an OpenSSL update.

How it was found

  1. Clone the public proof-of-concept tool for CVE-2016-2107.
  2. Run the tool against the target host.
  3. Observe that it reports the host as vulnerable.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a website talks securely to a browser, the data is scrambled (encrypted) and padded to a fixed size. A padding oracle is a flaw where the server reacts differently depending on whether that padding looks right, and an attacker who can watch the connection can use those reactions to slowly unscramble the data. Here the server's TLS software had this known flaw.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by edoverflow

View all

27 more disclosed reports, best first.

More from FormAssembly

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.