BEA WebLogic may reveal script source code by URL trickery ---------------------------------------------------------- Sverre H. Huseby security advisory #2, 2001-03-28 Systems affected ---------------- WebLogic 5.1.0 SP 8, and probably earlier versions. Description ----------- BEA WebLogic may be tricked into revealing the source code of JSP scripts by using simple URL encoding of characters in the filename extension. Details ------- It seems that the built in web server in WebLogic does URL decoding in an unreasonable order. URLs like the following http://someplace.com/index.js%70 where %70 is an URL encoded 'p', returns the source code of index.jsp rather than running the script on the server side. To speculate (read: guess): The JSP handler is skipped as this URL does not end in ".jsp", but the static file handler is nevertheless able to map the URL into a correct file name. Impact ------ This design error makes it possible to fetch the source code of JSP scripts. Such source code may contain database passwords and file names, and may reveal design errors or programming bugs that make it possible to further exploit the server or service. Reported by Sverre H. Huseby, shh@thathost.com