-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
Document use of security-logging library #12
Comments
I've set up WebGoat 7.0.1 to run on an existing Tomcat installation. There were some difficulties with permissions that needed to be corrected for the application to run properly.
There are three log files specified int he log4j.properties file
In a short time using the application, I was able to get data in the 'webgoat_main.log' file. The 'perf' log was generated, but no data was written to it and the 'error' log was not written at all. After a review of the 'main' log, I identified the following issues to use as examples of using the security-logging library to remove sensitive information. High risk
Medium Risk
Low Risk
|
Hi @robertwatkins this is great actually. Can you post a link to your code, or the diffs you made to Webgoat to get logging to work? |
Interesting work. You should post a sample section of a log file when u get the chance. |
@augustd and @spoofzu Fortunately, there were no code changes to WebGoat, just file permission issues to resolve. I'll post some additional details on getting webgoat running when I get home. As for the log file, I had attached it, but it put in a weird link in my comment instead. I'll add it when I get home. Thanks for the feedback guys :) |
webgoat_main.txt |
Here are the symptoms of troubles I was having:
The error provided to the user had the root cause of the tomcat service user not having write permissions to the expected folder (/var/lib/tomcat7 in this case). To fix this I did something to the effect of 'chmod tomcat7 +w /var/lib/tomcat7' The missing log file issue was fixed by adding a log folder to /usr/share/tomcat7 and the same kind of permission change. I won't claim these changes are ideal, though they did get me a functioning system. :) Thoughts? |
Seems the noclassdeffounderror is a classloader issue; when Tomcat starts, it loads Tomcat libraries in its own classloader, the web application is loaded in another classloader which is isolated from the other. |
OK, it's been a very long time since I've made progress on this. I'm starting up again and hope to have some updates soon. Thanks for your patience :) |
Create a document that shows how the security-logging library should be implemented by walking through an implementation on a known insecure web application, Webgoat. This document would cover both the technical aspects of _what_ to do as well as the business aspects of _why_ to do it.
A recommended outline would be:
The text was updated successfully, but these errors were encountered: