Submit #1055344: RainyGao DocSys 2.02.88 Path Traversalinfo

TitleRainyGao DocSys 2.02.88 Path Traversal
DescriptionDocSys (also known as MxsDoc) 2.02.88 allows an unauthenticated remote attacker to read arbitrary files from the server filesystem.  The endpoint /Doc/downloadDocRS.do accepts three Base64 encoded parameters (remoteDirectory, path, name) together with an authorization code. When the parameter reposId is omitted, the handler skips the repository permission check entirely and calls sendTargetToWebPage() with the concatenation of the supplied directory, path and file name. No path normalization or canonicalization is applied to the resulting path.  The authorization code is validated through checkAuthCode(authCode, null, ...). The second argument denotes the expected usage of the code; because it is passed as null, the intended usage is never compared and any valid code is accepted for this endpoint. A suitable code can be obtained without authentication from /Manage/getDocSysInitConfig.do, which returns docSysInitAuthCode in its JSON response. That endpoint is reachable because the request interceptor unconditionally allows requests carrying the X-Requested-With: XMLHttpRequest header, which is fully client controlled.  The issue was confirmed on version 2.02.88 by reading /etc/passwd, with no session cookie present.  Affected source locations: - src/com/DocSystem/controller/DocController.java (downloadDocRS, reposId null branch) - src/com/DocSystem/controller/BaseController.java (checkAuthCode) - src/com/DocSystem/controller/MyInterceptor.java (preHandle) The full reproduction sequence is:  1. POST /DocSystem/Manage/getDocSysInitConfig.do with header X-Requested-With: XMLHttpRequest -> response contains docSysInitAuthCode  2. GET /DocSystem/Doc/downloadDocRS.do ?authCode=<code> &remoteDirectory=<base64 of "/etc/"> &path=<base64 of "/"> &name=<base64 of "passwd">  -> HTTP 200, body is the content of /etc/passwd
Source⚠️ https://github.com/RainyGao-GitHub/DocSys/issues/50
User
 SinDog (UID 102463)
Submission10/24/2026 09:06 (1 month ago)
Moderation11/23/2026 13:14 (1 month later)
StatusAccepted
VulDB entry442300 [RainyGao DocSys up to 2.02.91 DocController.java downloadDocRS path path traversal]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!