Plane 0.7.1 - Insecure file upload

Summary

NamePlane v0.7.1 - Insecure file upload
Code name
ProductPlane
Affected versions0.7.1
StatePublic
Release date2023-07-14

Vulnerability

KindInsecure file upload
Rule
RemoteYes
CVSSv3.1 VectorCVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSSv3.1 Base Score7.1
Exploit availableYes
CVE ID(s)

Description

Plane version 0.7.1-dev allows an attacker to change the avatar of his profile, which allows uploading files with HTML extension that interprets both HTML and JavaScript.

Vulnerability

The vulnerability arises when uploading files other than JPG and PNG which it says is allowed, since files of all file extensions and sizes can be uploaded and stored without validation. Then an attacker can upload an HTML file as a profile avatar, and it may contain malicious JavaScript code stored with which they can steal session cookies from users and the administrator.

Exploit

vulnerability-code-Plane

Evidence of exploitation

Log in with any user and go to the menu and go to "Settings -> General -> Logo (Upload)" we create a file with HTML extension which inside sends in a request to an attacker's server the user's cookies.

Once the attacker obtains the cookies he can use them to log into the user's account and as seen in this example gain full control of the account to delete, create, view.

vulnerability-code-Plane

Our security policy

We have reserved the CVE-2023-30791 to refer to this issue from now on.

System Information

  • Version: Plane 0.7.1

  • Operating System: GNU/Linux

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Lautaro Casanova from Fluid Attacks' Offensive Team.

References

Vendor page https://github.com/makeplane/plane

Timeline

Time-lapse-logo

2023-06-16

Vulnerability discovered.

Time-lapse-logo

2023-06-16

Vendor contacted.

Time-lapse-logo

2023-06-23

Vendor Confirmed the vulnerability.

Time-lapse-logo

2023-07-14

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.