CVE-2021–38314

Unauthenticated Sensitive Information Disclosure | CVE-2021–38314

CVE-2021–38314

Shubhayu Majumdar

--

I was teaching my friend about bug hunting and we found this bug accidentally.

I’m Shubhayu Majumdar, currently pursuing BTech in Computer Science, and I hunt bugs as a hobby. During our research, we came across a subdomain https://blog.redated.com is vulnerable with Unauthenticated Sensitive Information Disclosure (CVE-2021–38314).

What is CVE-2021–38314 ?

The Gutenberg Template Library & Redux Framework plugin <= 4.2.11 for WordPress registered several AJAX actions available to unauthenticated users in the `includes` function in `redux-core/class-redux-core.php` that were unique to a given site but deterministic and predictable given that they were based on an md5 hash of the site URL with a known salt value of ‘-redux’ and an md5 hash of the previous hash with a known salt value of ‘-support’.

These AJAX actions could be used to retrieve a list of active plugins and their versions, the site’s PHP version, and an unsalted md5 hash of site’s `AUTH_KEY` concatenated with the `SECURE_AUTH_KEY`.

Now, let’s look at the bug.

Bugs found:

  • CVE-2021–38314 in blog.redated.com

Proof of Concept:

I found this vulnerability on blog.redated.com and used this script (shubhayu-64/CVE-2021–38314) to generate the exploit link.

Exploit Script

The exploit link looks like this.

https://blog.redated.com/wp-admin/admin-ajax.php?action=7a18999e7d70dfe268c0c574182a5dd0&code=9yq8NpNVYxwsXrB89bIpCXeg%2BacLr%2B3cTlMC4T51wjX9qnr9Fap4Lg55hJurvG6%2F6dHhCIPem7gymuaA8%2BLD9w%3D%3D

Voila

Exploited data

Impact:

Attacker can retrieve sensitive information such as a list of active plugins and their versions, the site’s PHP version, and an unsalted md5 hash of site’s `AUTH_KEY` concatenated with the `SECURE_AUTH_KEY`. This would be most useful in cases where a separate plugin with an additional vulnerability was installed, as an attacker could use the information to save time and plan an intrusion.

Reference:

A collaboration with Shubham Singh.

Hope you enjoyed it :)

Cheers & Stay Safe !! :) ❤

Connect me at LinkedIn ._. Twitter ._. Buy me a coffee

--

--

Shubhayu Majumdar

Computer Science Student, Bug Hunter and Machine Learning Enthusiast