Test RDS for path traversal
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.
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:READFollow #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.