Skip to content
Crypto Disclosed report Advanced CVE-2018-2879

[HTAF4-213] [Pre-submission] CVE-2018-2879 (padding oracle attack in the Oracle Access Manager) at https://█████████

The Oracle Access Manager instance was vulnerable to CVE-2018-2879, a padding oracle attack that allowed decryption of encrypted parameters such as encquery. An unauthenticated attacker could recover plaintext and potentially forge authentication cookies to bypass authentication.

sp1d3rs Follow with yashrs, alyssa_herrera and 2 others

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 9 months
  • Paid in 5 days
  • Disclosed after 21 months

##Description We were able to identify CVE-2018-2879 in Oracle Access Manager, used on the https://██████ Link to the CVE: https://nvd.nist.gov/vuln/detail/CVE-2018-2879 This vulnerability is rated critical, and may allow unauthenticated attacker with network access via HTTP to compromise Oracle Access Manager. It's possible to conduct padding oracle attack and recover plaintext from encquery parameter Materials: https://sec-consult.com/en/blog/2018/05/oracle-access-managers-identity-crisis/

##POC We modified https://github.com/redtimmy/OAMBuster/blob/master/oambuster.py proof-of concept for https://█████ (it required some changes, for example gcds-consent=true is necessary in all requests to not face with consent banner page. Here is it: █████████ It can be launched in the next way to simply test for padding oracle and recover plaintext:

oambuster.py -d https://██████████

The result (decrypt process can take some time, for example on the screenshot above it's not fully finished, but you can already see readable parts): ███████

This confirms that vulnerability is valid.

##Suggested fix Apply patch & update OAM instance

Impact

Padding oracle attack allows us to decrypt any messages. As all the encrypted messages (encquery, encreply, OAMAuthnCookie) are encrypted with the same key, we can decrypt any of these messages. This attack can also be used to encrypt messages. So if we construct a valid authentication cookie and encrypt it with our padding oracle attack, we can pass it off as valid to the web server and perform authentication bypass.

We will research this further and will update report with new information.

The original report as published on HackerOne, by sp1d3rs. 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 the Oracle Access Manager version was unpatched and vulnerable to CVE-2018-2879, which involves a padding oracle in its encryption handling.

Impact

The padding oracle allowed decryption of any encrypted messages (encquery, encreply, OAMAuthnCookie) and could also be used to encrypt messages, potentially enabling authentication bypass by forging a valid authentication cookie.

What the attacker needed

Network access to the target; unpatched Oracle Access Manager

The fix

Apply the patch and update the OAM instance.

How it was found

  1. Modify the OAMBuster proof-of-concept script to include the parameter gcds-consent=true in all requests to avoid the consent banner.
  2. Run the modified script against the target URL to test for the padding oracle and recover plaintext.

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.

A padding oracle attack decrypts data without the key by observing how a server reacts to corrupted encrypted messages. Here it could recover plaintext and possibly forge login cookies.

What is Crypto?

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

More by sp1d3rs

View all

62 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.