Skip to content

Malicious requests can fill up the log files resulting in a DoS on the server

High
jomaxro published GHSA-89h3-g746-xmwq Oct 16, 2023

Package

Discourse (Discourse)

Affected versions

stable < 3.1.1; beta/tests-passed < 3.2.0.beta2

Patched versions

stable >= 3.1.2; beta/tests-passed >= 3.2.0.beta2

Description

Impact

A malicious request can cause production log files to quickly fill up and thus result in the server running out of disk space.

Patches

The problem has been patched in the latest version of Discourse.

Workarounds

It is possible to temporarily work around this problem by reducing the client_max_body_size nginx directive. This can be done by adding the following lines to the container definition file:

run:
    - replace:
        global: true
        filename: /etc/nginx/conf.d/discourse.conf
        from: /client_max_body_size .*$/
        to: client_max_body_size 0.16m;

Note that the client_max_body_size will limit the size of uploads that can be uploaded directly to the server.

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2023-44388

Weaknesses

No CWEs