CVE-2022-0377

LearnPress <= 4.1.4.1 - Arbitrary Image Renaming

2022-01-26 00:00
Ceylan Bozogullarindan

Strategic Overview

Status
Patched in 4.1.5
Affected Version
<= 4.1.4.1
CVSS
4.3Medium
Weakness type
CWE-73 · External Control of File Name or Path
CVE
CVE-2022-0377
View all LearnPress – WordPress LMS Plugin for Create and Sell Online Courses vulnerabilities

At a glance

CVE-2022-0377 is a medium-severity External Control of File Name or Path vulnerability in the LearnPress WordPress plugin, affecting versions <= 4.1.4.1. It carries a CVSS score of 4.3 (reachable over the network; low attack complexity). The issue is fixed in version 4.1.5; sites on affected versions should update now. Disclosed January 2022, reported by Ceylan Bozogullarindan.

Vulnerability Overview

Users of the LearnPress WordPress plugin before 4.1.5 can upload an image as a profile avatar after the registration. After this process the user crops and saves the image. Then a "POST" request that contains user supplied name of the image is sent to the server for renaming and cropping of the image. As a result of this request, the name of the user-supplied image is changed with a MD5 value. This process can be conducted only when type of the image is JPG or PNG. An attacker can use this vulnerability in order to rename an arbitrary image file. By doing this, they could destroy the design of the web site.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.

CWE-73: External Control of File Name or Path

The product allows user input to control or influence paths or file names that are used in filesystem operations.

Remediation

Update to version 4.1.5, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to LearnPress: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: LearnPress 4.1.5 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Scanner
  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C