[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.
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
- Modify the OAMBuster proof-of-concept script to include the parameter gcds-consent=true in all requests to avoid the consent banner.
- 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.