-
Notifications
You must be signed in to change notification settings - Fork 474
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
Cannot build find-sec-bugs from local, CrlfLogInjectionDetectorTest fail #736
Comments
I also encountered this problem with a fresh workspace. It looks like it was introduced with the Kotlin version update when releasing FindSecBugs 13.0. Modifying the Kotlin version back to 1.3.72 on the current master, the build is successful on my local machine (if the changes from #740 are also applied). |
It still works using Kotlin 1.4.10, from Kotlin version 1.4.20 to 1.4.32 another type of build fail surfaces, and from Kotlin 1.5.0 to 2.0.0 this problem persists.
These are the new bugreports, which should not be reported:
The strange thing is, that when I commented out the lines of other bugreports, the bugs were the expected ones. Tried to separate the sample code into several functions, but this didn't help solving the issue. |
If the checking is using the FSB taint tracing, then perhaps the newer Kotlin libraries are not compiling to the same Java methods that we would expect. The
The disassembled code from [my modified] KotlinLogging.class shows that the newer version Kotlin inserts an extra method call into the bytecode after the call to
This method is not currently in any of the taint configuration files, and the taint engine doesn't know that this method doesn't change the first parameter, which is our string. We can declare this
(edit, I think the correct taint setting is Unless someone beats me to it, I'll make a pull request that adds this configuration as soon as I get a chance. All of the other methods in that |
Environment
Trying to build branch master of find-sec-bugs. Edit : Got same error with version-13.0.0 but version-12.0.0 works fine.
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.22, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.15.133.1-microsoft-standard-wsl2", arch: "amd64", family: "unix"
Cannot build find-sec-bugs from local, CrlfLogInjectionDetectorTest fail
Similar to issue (https://github.com/find-sec-bugs/find-sec-bugs/issues/379)[#issue379].
mvn clean test-compile works fine but mvn clean install fails.
Stacktrace :
The text was updated successfully, but these errors were encountered: