We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the Parameters to the xmleditor page of the deegree-jsf-console is set to a path outside the workspace a file could be read.
(requries that the tomcat user can read the file)
Example on Windows fileName=C:\VerryBadFileLikeEtcPasswd.txt On Linux this maybe the /etc/passwd or a other security related file.
Full request:
http://localhost:8080/deegree-webservices/console/generic/xmleditor.xhtml?nextView=%2Fconsole%2Fwebservices%2Findex&id=null&fileName=C%3A\VerryBadFileLikeEtcPasswd.txt&schemaUrl=jar%3Afile%3A%2FC%3A%2Fworkspace%2Fdeegree3_ws_34cs%2F.metadata%2F.plugins%2Forg.eclipse.wst.server.core%2Ftmp0%2Fwtpwebapps%2Fdeegree-webservices%2FWEB-INF%2Flib%2Fdeegree-services-commons.jar!%2FMETA-INF%2Fschemas%2Fservices%2Fcontroller%2F3.2.0%2Fcontroller.xsd
The file could also be written to disk if the process has the right to and the file passes the xml-validation.
If a workspace is secured by a password, the xmleditor could not directly be invoked.
The File is directly read in org.deegree.console.generic.XmlEditorBean.getContent()
The text was updated successfully, but these errors were encountered:
xml editor: fileName parameter behavior changed
74cd286
It was possible to edit arbitrary files outside the workspaces root. The fileName parameter is now relative to the workspaces root. fixes deegree#356
copierrj
Successfully merging a pull request may close this issue.
If the Parameters to the xmleditor page of the deegree-jsf-console is set to a path outside the workspace a file could be read.
(requries that the tomcat user can read the file)
Example on Windows fileName=C:\VerryBadFileLikeEtcPasswd.txt
On Linux this maybe the /etc/passwd or a other security related file.
Full request:
The file could also be written to disk if the process has the right to and the file passes the xml-validation.
If a workspace is secured by a password, the xmleditor could not directly be invoked.
The File is directly read in org.deegree.console.generic.XmlEditorBean.getContent()
The text was updated successfully, but these errors were encountered: