Cockpit prior to 0.12.0 NoSQL injection in /auth/newpassword

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.
Anandhu Krishnan
Written by
Lead Engineer

Anandhu is an accomplished Senior Lead Engineer with a strong focus on back-end development. His expertise lies in architecting and optimizing the core of software applications to ensure they run smoothly and efficiently. With a meticulous attention to detail and a deep understanding of data management and server-side operations, Anandhu has been a driving force behind the success of various back-end projects.

Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 14 days
4.8 on G2 • ISO 27001 certified
See How Beagle Security Works
No credit card • No setup required
Launch interactive demo