Skip to content

elFinder < 2.1.62 - Path Traversal vulnerability in PHP LocalVolumeDriver connector

License

Notifications You must be signed in to change notification settings

afine-com/CVE-2023-35840

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

CVE-2023-35840

elFinder < 2.1.62 - Path Traversal vulnerability in PHP LocalVolumeDriver connector

Description

Path Traversal vulnerability in PHP LocalVolumeDriver connector. This vulnerability can be exploited by allowing untrusted users to write to the local file system.

Vulnerability exists in target parameter which contains a base64 encoded path. For exmpample path pentest is encoded as:

1_cGVudGVzdA==

If we skip l1_ as it looks to be a constant prefix rest can be decoded as:

pentest

Therefore we can modify it to:

pentest/../../

And then encode it as:

l1_cGVudGVzdC8uLi8uLi8=

With target parameter set to this value we can write arbitary files to application root folder.

This issue was caused by incomplete validity checking of the supplied request parameters. That problem has been fixed in elFinder Version 2.1.62.

Affected versions

< 2.1.62

Advisory

Update elFinder to 2.1.62 or newer.

References

About

elFinder < 2.1.62 - Path Traversal vulnerability in PHP LocalVolumeDriver connector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published