Platform Path Disclosure


Overview

Platform Path Disclosure may result when internal system paths are disclosed to the user-agent (browser). These paths can be used in other attacks such as directory browsing.

YouTubeVideo Tutorials

Discovery Methodology

Attempt to discover if it is possible to cause errors by injecting all input parameters with characters that are reserved in various contexts. Search web page sources (view source) for internal system paths.

Exploitation

Note if the web server is Linux or Windows based. Search pages with and without injection. Use the grep feature of Burp-Suite to seach for platform path patterns that match the web server operating system type.


Warning: Undefined property: YouTubeVideoHandler::$HowtoInstalldirbonLinux in /var/www/mutillidae/includes/hints/platform-path-disclosure-hint.inc on line 24

Fatal error: Uncaught Exception: /var/www/mutillidae/classes/MySQLHandler.php on line 229: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 Query: SELECT&#x20;identificationToken&#x2c;&#x20;title&#x20;FROM&#x20;youTubeVideos&#x20;WHERE&#x20;recordIndetifier&#x20;&#x3d;&#x20;&#x3b; (1064) [mysqli_sql_exception] <br /> in /var/www/mutillidae/classes/MySQLHandler.php:237 Stack trace: #0 /var/www/mutillidae/classes/MySQLHandler.php(327): MySQLHandler->doExecuteQuery('SELECT identifi...') #1 /var/www/mutillidae/classes/SQLQueryHandler.php(309): MySQLHandler->executeQuery('SELECT identifi...') #2 /var/www/mutillidae/classes/YouTubeVideoHandler.php(23): SQLQueryHandler->getYouTubeVideo(NULL) #3 /var/www/mutillidae/classes/YouTubeVideoHandler.php(340): YouTubeVideos->getYouTubeVideo(NULL) #4 /var/www/mutillidae/includes/hints/platform-path-disclosure-hint.inc(24): YouTubeVideoHandler->getYouTubeVideo(NULL) #5 /var/www/mutillidae/hints-page-wrapper.php(75): include_once('/var/www/mutill...') #6 {main} thrown in /var/www/mutillidae/classes/MySQLHandler.php on line 237