Rapid7 Vulnerability & Exploit Database

Yaws Web Server Directory Traversal

Back to Search

Yaws Web Server Directory Traversal



This module exploits a directory traversal bug in Yaws v1.9.1 or less. The module can only be used to retrieve files. However, code execution might be possible. Because when the malicious user sends a PUT request, a file is actually created, except no content is written.


  • sinn3r <sinn3r@metasploit.com>


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/scanner/http/yaws_traversal
msf auxiliary(yaws_traversal) > show actions
msf auxiliary(yaws_traversal) > set ACTION < action-name >
msf auxiliary(yaws_traversal) > show options
    ...show and set options...
msf auxiliary(yaws_traversal) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security