CVE-2021-21247CWE-74

Post-Auth Unsafe Deserialization on BasePage (AJAX)

Critical · published January 15, 2021

CVSS v3.1
9.6
EPSS
2%
Percentile
74.4
In the wild
Unconfirmed
What it is

🚨 One sneaky AJAX listener is all it takes for post-authentication remote code execution! 💻 If a user is logged in, an attacker can execute arbitrary code just by sending a crafted POST request. Think of it like a restaurant where once you're allowed inside, you can swap out the chef's special for whatever dish you fancy without anyone noticing—until dessert comes around and it’s a total disaster! 🍽️ This vulnerability allows an authenticated attacker to execute malicious code on the server, leading to complete compromise of the application. The implications are absolutely devastating, as the attacker can manipulate the application in any way they see fit, potentially exposing sensitive data or causing complete service disruption.

Put simply

Think of it like a restaurant where once you're allowed inside, you can swap out the chef's special for whatever dish you fancy without anyone noticing—until dessert comes around and it’s a total disaster! 🍽️ In OneDev, the BasePage registers an AJAX event listener that decodes and deserializes data from the query parameter. This occurs on all pages except the login page, making it possible for authenticated users to exploit it through crafted POST requests.

What to do

This vulnerability allows an authenticated attacker to execute malicious code on the server, leading to complete compromise of the application. The implications are absolutely devastating, as the attacker can manipulate the application in any way they see fit, potentially exposing sensitive data or causing complete service disruption. Upgrade to version 4.0.3 immediately to mitigate this vulnerability. Additionally, ensure that serialization payloads are encrypted with server-specific secrets to prevent unauthorized access. Conduct a thorough review of your security measures to fortify your defenses. You've got this! With these steps, you'll be back in control and your application fortified in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.6 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01521 · 74.4th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2021-01-15T20:10Z
EPSS history
Timeline
  • 15 JAN 20:10Z
    Post-Auth Unsafe Deserialization on BasePage (AJAX)
    cvelistv5