-
Notifications
You must be signed in to change notification settings - Fork 475
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
New Rule : Seam Logger usage could lead to remote code execution #56
Comments
You can take the Script Injection Detector as example : https://github.com/h3xstream/find-sec-bugs/tree/master/plugin/src/main/java/com/h3xstream/findsecbugs/injection/script |
@ThrawnCA Do you have a reference or code sample of how expression look like? |
I'm no expert, but there are some samples at https://docs.jboss.org/seam/2.3.1.Final/reference/html_single/#d0e4185 It looks like JBoss expression language is an extension of standard J2EE expression language (https://docs.oracle.com/javaee/6/tutorial/doc/gjddd.html). Essentially, the expressions that we'd be concerned about use |
@ThrawnCA Thanks I notice at the same time that the |
Here is the first draft of the description : http://h3xstream.github.io/find-sec-bugs/bugs.htm#SEAM_LOG_INJECTION |
The Seam framework accepts expression language in its log statements, so concatenating strings to pass to the logger is a very bad idea.
https://issues.jboss.org/browse/JBSEAM-5130
Is it easy enough to add a detector for this?
The text was updated successfully, but these errors were encountered: