Disclosed vulnerabilities
CVE-2022-44143 Published: Oct 30, 2022

Arbitrary File Write (via Path Traversal) in nopCommerce

5.8 Medium Severity arbitrary ASP.NET file nuget path traversal Write
Ori Ron Reported by Checkmarx Zero

Summary

A path traversal vulnerability leads to arbitrary file write

Product

nopCommerce version 4.50.3 and below

Impact

A remote attacker can craft a malicious request to upload his/her own avatar to the system, which may result in arbitrary file write, including overwriting existing files used by nopCommerce.
The vulnerable endpoint relies on user-input to determine both the mime-type of the uploaded file, and the content of the file. The mime-type is set according to the Content-Type header, which is controlled by the attacker, and isn’t go through any sanitization or validation.
Similarly, the content of the file is just the content of the multipart request, without any validation.

Remediation

Update nopCommerce to versions 4.60.4.

Credit

This issue was reported by [Ori Ron](https://www.linkedin.com/in/ori-ron-40099912b/

Resources

  1. d2f6214

Stay connected and never miss a research update!