Cockpit prior to 0.12.0 NoSQL injection in /auth/newpassword

By
Anandhu Krishnan
Published on
16 Jun 2021
Vulnerability

NoSQL injection occur when an attacker is able to inject malicious code in a NoSQL database.This is typically done through JSON and Javascript code.Here NoSQL injection is performed over Cockpit prior .Agentejo Cockpit prior to 0.11.2 are vulnerable to the attack.The Controller/Auth.php new password feature in Agentejo Cockpit prior to 0.11.2 enables NoSQL injection.

Impact

A lot of information disclosure can happen.It is possible to change certain system files or information, but the attacker has no control over what can be changed, or the scope of what the attacker can affect is restricted.There is a decrease in efficiency or a disruption in the availability of resources.

Mitigation / Precaution

  • Avoid using unsanitized user inputs in application code
  • Validate length and type of the data
  • In order to patch this vulnerability, please install the official patch Cockpit made available for supported, vulnerable instances.

Written by
Anandhu Krishnan
Anandhu Krishnan
Lead Engineer
Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 10 days