appthreat / joern-lib Goto Github PK
View Code? Open in Web Editor NEWPython library for code analysis with CPG and Joern
Home Page: https://discord.gg/tmmtjCEHNV
License: Apache License 2.0
Python library for code analysis with CPG and Joern
Home Page: https://discord.gg/tmmtjCEHNV
License: Apache License 2.0
Seeing many exceptions like below for python
joern-lib-joern-1 | Connection closed.
joern-lib-joern-1 | 2023-06-02 20:08:58.189 ERROR LocationCreator$: Cannot determine location for METHOD_REF due to broken CPG
joern-lib-joern-1 | java.util.NoSuchElementException: next on empty iterator
joern-lib-joern-1 | at scala.collection.Iterator$$anon$19.next(Iterator.scala:966) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.Iterator$$anon$19.next(Iterator.scala:964) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.Iterator$$anon$7.next(Iterator.scala:528) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at overflowdb.traversal.Traversal.next(Traversal.scala:22) ~[io.shiftleft.overflowdb-traversal_2.13-1.171.jar:1.171]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.nodemethods.MethodRefMethods$.location$extension(MethodRefMethods.scala:14) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.nodemethods.MethodRefMethods.location(MethodRefMethods.scala:9) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.LocationCreator$.location(LocationCreator.scala:27) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.LocationCreator$.apply(LocationCreator.scala:17) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.nodemethods.NodeMethods$.location$extension(NodeMethods.scala:12) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.NodeSteps$.$anonfun$location$1(NodeSteps.scala:49) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
joern-lib-joern-1 | at scala.collection.Iterator$$anon$9.next(Iterator.scala:577) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.immutable.List.prependedAll(List.scala:153) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.IterableOnceOps.toList(IterableOnce.scala:1251) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.IterableOnceOps.toList$(IterableOnce.scala:1251) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at overflowdb.traversal.Traversal.toList(Traversal.scala:16) ~[io.shiftleft.overflowdb-traversal_2.13-1.171.jar:1.171]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.Steps$.toJson$extension(Steps.scala:67) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
joern-lib-joern-1 | at io.shiftleft.semanticcpg.language.Steps$.toJsonPretty$extension(Steps.scala:62) ~[io.joern.semanticcpg-1.1.1742.jar:1.1.1742]
Use the branch https://github.com/AppThreat/joern-lib/tree/feature/joern3
docker compose up --build --pull always
# Visit http://localhost:8192 and click "Run all cells" in vuln-spring notebook.
# See the exceptions in the logs
Many reachableByFlows queries are failing.
joern-lib-joern-1 | 2023-06-01 12:31:33.613 WARN Engine: SolveTask failed with exception:
joern-lib-joern-1 | java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:605) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:981) ~[?:?]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.$anonfun$solveTasks$5(Engine.scala:99) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at scala.util.Try$.apply(Try.scala:210) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.runUntilAllTasksAreSolved$1(Engine.scala:99) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.solveTasks(Engine.scala:114) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.backwards(Engine.scala:53) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.language.ExtendedCfgNode$.reachableByInternal$extension(ExtendedCfgNode.scala:84) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.language.ExtendedCfgNode$.reachableByFlows$extension(ExtendedCfgNode.scala:48) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at ammonite.$sess.cmd181$.<clinit>(cmd181.sc:1) ~[?:?]
joern-lib-joern-1 | at ammonite.$sess.cmd181.$main(cmd181.sc) ~[?:?]
joern-lib-joern-1 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
joern-lib-joern-1 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
joern-lib-joern-1 | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
joern-lib-joern-1 | at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.$anonfun$evalMain$1(Evaluator.scala:108) ~[com.lihaoyi.ammonite-runtime_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Util$.withContextClassloader(Util.scala:24) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.evalMain(Evaluator.scala:90) ~[com.lihaoyi.ammonite-runtime_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.$anonfun$processLine$2(Evaluator.scala:127) ~[com.lihaoyi.ammonite-runtime_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Catching.map(Res.scala:117) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.$anonfun$processLine$1(Evaluator.scala:121) ~[com.lihaoyi.ammonite-runtime_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.processLine(Evaluator.scala:120) ~[com.lihaoyi.ammonite-runtime_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$evaluateLine$5(Interpreter.scala:307) ~[com.lihaoyi.ammonite-interp_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$evaluateLine$2(Interpreter.scala:290) ~[com.lihaoyi.ammonite-interp_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Catching.flatMap(Res.scala:115) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.interp.Interpreter.evaluateLine(Interpreter.scala:289) ~[com.lihaoyi.ammonite-interp_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$processLine$6(Interpreter.scala:277) ~[com.lihaoyi.ammonite-interp_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$processLine$4(Interpreter.scala:260) ~[com.lihaoyi.ammonite-interp_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$processLine$2(Interpreter.scala:253) ~[com.lihaoyi.ammonite-interp_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Catching.flatMap(Res.scala:115) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.interp.Interpreter.processLine(Interpreter.scala:252) ~[com.lihaoyi.ammonite-interp_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Repl.$anonfun$action$8(Repl.scala:199) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Repl.$anonfun$action$4(Repl.scala:186) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Scoped.$anonfun$flatMap$1(Signaller.scala:45) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Signaller.apply(Signaller.scala:28) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Scoped.flatMap(Signaller.scala:45) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Scoped.flatMap$(Signaller.scala:45) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Signaller.flatMap(Signaller.scala:16) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Repl.$anonfun$action$2(Repl.scala:178) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.util.Catching.flatMap(Res.scala:115) ~[com.lihaoyi.ammonite-util_2.13-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Repl.action(Repl.scala:170) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Repl.loop$1(Repl.scala:212) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.repl.Repl.run(Repl.scala:227) ~[com.lihaoyi.ammonite-repl_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at ammonite.Main.$anonfun$run$1(Main.scala:236) ~[com.lihaoyi.ammonite_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at scala.Option.getOrElse(Option.scala:201) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at ammonite.Main.run(Main.scala:224) ~[com.lihaoyi.ammonite_2.13.8-2.5.8.jar:2.5.8]
joern-lib-joern-1 | at io.joern.console.embammonite.EmbeddedAmmonite.$anonfun$shellThread$1(EmbeddedAmmonite.scala:48) ~[io.joern.console-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at java.lang.Thread.run(Thread.java:833) [?:?]
joern-lib-joern-1 | Caused by: java.lang.ArrayIndexOutOfBoundsException
joern-lib-joern-1 | at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
joern-lib-joern-1 | at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
joern-lib-joern-1 | at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
joern-lib-joern-1 | at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
joern-lib-joern-1 | at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:564) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:604) ~[?:?]
joern-lib-joern-1 | ... 52 more
joern-lib-joern-1 | Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 8
joern-lib-joern-1 | at overflowdb.util.ArrayOffsetIterator.peekNext(ArrayOffsetIterator.java:36) ~[io.shiftleft.overflowdb-core-1.171.jar:1.171]
joern-lib-joern-1 | at overflowdb.util.ArrayOffsetIterator.hasNext(ArrayOffsetIterator.java:24) ~[io.shiftleft.overflowdb-core-1.171.jar:1.171]
joern-lib-joern-1 | at scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.hasNext(JavaCollectionWrappers.scala:37) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.Iterator$$anon$7.hasNext(Iterator.scala:516) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:593) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.immutable.List.prependedAll(List.scala:152) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.IterableOnceOps.toList(IterableOnce.scala:1251) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.IterableOnceOps.toList$(IterableOnce.scala:1251) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.AbstractIterator.toList(Iterator.scala:1293) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at overflowdb.traversal.Traversal.l(Traversal.scala:27) ~[io.shiftleft.overflowdb-traversal_2.13-1.171.jar:1.171]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.paramToArgsOfCallers(TaskCreator.scala:77) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.paramToArgs(TaskCreator.scala:70) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.$anonfun$tasksForParams$1(TaskCreator.scala:54) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at scala.collection.StrictOptimizedIterableOps.flatMap(StrictOptimizedIterableOps.scala:118) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.StrictOptimizedIterableOps.flatMap$(StrictOptimizedIterableOps.scala:105) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at scala.collection.immutable.Vector.flatMap(Vector.scala:113) ~[org.scala-lang.scala-library-2.13.8.jar:?]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.tasksForParams(TaskCreator.scala:44) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.createFromResults(TaskCreator.scala:17) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskSolver.call(TaskSolver.scala:43) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskSolver.call(TaskSolver.scala:23) ~[io.joern.dataflowengineoss-1.1.1740.jar:1.1.1740]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:686) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask$AdaptedCallable.run(ForkJoinTask.java:1436) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
joern-lib-joern-1 | at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
joern-lib-joern-1 | java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:605)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:981)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.$anonfun$solveTasks$5(Engine.scala:99)
joern-lib-joern-1 | at scala.util.Try$.apply(Try.scala:210)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.runUntilAllTasksAreSolved$1(Engine.scala:99)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.solveTasks(Engine.scala:114)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.Engine.backwards(Engine.scala:53)
joern-lib-joern-1 | at io.joern.dataflowengineoss.language.ExtendedCfgNode$.reachableByInternal$extension(ExtendedCfgNode.scala:84)
joern-lib-joern-1 | at io.joern.dataflowengineoss.language.ExtendedCfgNode$.reachableByFlows$extension(ExtendedCfgNode.scala:48)
joern-lib-joern-1 | at ammonite.$sess.cmd181$.<clinit>(cmd181.sc:1)
joern-lib-joern-1 | at ammonite.$sess.cmd181.$main(cmd181.sc)
joern-lib-joern-1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
joern-lib-joern-1 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
joern-lib-joern-1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
joern-lib-joern-1 | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.$anonfun$evalMain$1(Evaluator.scala:108)
joern-lib-joern-1 | at ammonite.util.Util$.withContextClassloader(Util.scala:24)
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.evalMain(Evaluator.scala:90)
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.$anonfun$processLine$2(Evaluator.scala:127)
joern-lib-joern-1 | at ammonite.util.Catching.map(Res.scala:117)
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.$anonfun$processLine$1(Evaluator.scala:121)
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62)
joern-lib-joern-1 | at ammonite.runtime.Evaluator$$anon$1.processLine(Evaluator.scala:120)
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$evaluateLine$5(Interpreter.scala:307)
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62)
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$evaluateLine$2(Interpreter.scala:290)
joern-lib-joern-1 | at ammonite.util.Catching.flatMap(Res.scala:115)
joern-lib-joern-1 | at ammonite.interp.Interpreter.evaluateLine(Interpreter.scala:289)
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$processLine$6(Interpreter.scala:277)
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62)
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$processLine$4(Interpreter.scala:260)
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62)
joern-lib-joern-1 | at ammonite.interp.Interpreter.$anonfun$processLine$2(Interpreter.scala:253)
joern-lib-joern-1 | at ammonite.util.Catching.flatMap(Res.scala:115)
joern-lib-joern-1 | at ammonite.interp.Interpreter.processLine(Interpreter.scala:252)
joern-lib-joern-1 | at ammonite.repl.Repl.$anonfun$action$8(Repl.scala:199)
joern-lib-joern-1 | at ammonite.util.Res$Success.flatMap(Res.scala:62)
joern-lib-joern-1 | at ammonite.repl.Repl.$anonfun$action$4(Repl.scala:186)
joern-lib-joern-1 | at ammonite.repl.Scoped.$anonfun$flatMap$1(Signaller.scala:45)
joern-lib-joern-1 | at ammonite.repl.Signaller.apply(Signaller.scala:28)
joern-lib-joern-1 | at ammonite.repl.Scoped.flatMap(Signaller.scala:45)
joern-lib-joern-1 | at ammonite.repl.Scoped.flatMap$(Signaller.scala:45)
joern-lib-joern-1 | at ammonite.repl.Signaller.flatMap(Signaller.scala:16)
joern-lib-joern-1 | at ammonite.repl.Repl.$anonfun$action$2(Repl.scala:178)
joern-lib-joern-1 | at ammonite.util.Catching.flatMap(Res.scala:115)
joern-lib-joern-1 | at ammonite.repl.Repl.action(Repl.scala:170)
joern-lib-joern-1 | at ammonite.repl.Repl.loop$1(Repl.scala:212)
joern-lib-joern-1 | at ammonite.repl.Repl.run(Repl.scala:227)
joern-lib-joern-1 | at ammonite.Main.$anonfun$run$1(Main.scala:236)
joern-lib-joern-1 | at scala.Option.getOrElse(Option.scala:201)
joern-lib-joern-1 | at ammonite.Main.run(Main.scala:224)
joern-lib-joern-1 | at io.joern.console.embammonite.EmbeddedAmmonite.$anonfun$shellThread$1(EmbeddedAmmonite.scala:48)
joern-lib-joern-1 | at java.base/java.lang.Thread.run(Thread.java:833)
joern-lib-joern-1 | Caused by: java.lang.ArrayIndexOutOfBoundsException
joern-lib-joern-1 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
joern-lib-joern-1 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
joern-lib-joern-1 | at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
joern-lib-joern-1 | at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
joern-lib-joern-1 | at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:564)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:604)
joern-lib-joern-1 | ... 52 more
joern-lib-joern-1 | Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 8
joern-lib-joern-1 | at overflowdb.util.ArrayOffsetIterator.peekNext(ArrayOffsetIterator.java:36)
joern-lib-joern-1 | at overflowdb.util.ArrayOffsetIterator.hasNext(ArrayOffsetIterator.java:24)
joern-lib-joern-1 | at scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.hasNext(JavaCollectionWrappers.scala:37)
joern-lib-joern-1 | at scala.collection.Iterator$$anon$7.hasNext(Iterator.scala:516)
joern-lib-joern-1 | at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:593)
joern-lib-joern-1 | at scala.collection.immutable.List.prependedAll(List.scala:152)
joern-lib-joern-1 | at scala.collection.IterableOnceOps.toList(IterableOnce.scala:1251)
joern-lib-joern-1 | at scala.collection.IterableOnceOps.toList$(IterableOnce.scala:1251)
joern-lib-joern-1 | at scala.collection.AbstractIterator.toList(Iterator.scala:1293)
joern-lib-joern-1 | at overflowdb.traversal.Traversal.l(Traversal.scala:27)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.paramToArgsOfCallers(TaskCreator.scala:77)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.paramToArgs(TaskCreator.scala:70)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.$anonfun$tasksForParams$1(TaskCreator.scala:54)
joern-lib-joern-1 | at scala.collection.StrictOptimizedIterableOps.flatMap(StrictOptimizedIterableOps.scala:118)
joern-lib-joern-1 | at scala.collection.StrictOptimizedIterableOps.flatMap$(StrictOptimizedIterableOps.scala:105)
joern-lib-joern-1 | at scala.collection.immutable.Vector.flatMap(Vector.scala:113)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.tasksForParams(TaskCreator.scala:44)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskCreator.createFromResults(TaskCreator.scala:17)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskSolver.call(TaskSolver.scala:43)
joern-lib-joern-1 | at io.joern.dataflowengineoss.queryengine.TaskSolver.call(TaskSolver.scala:23)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:686)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.run(ForkJoinTask.java:1436)
joern-lib-joern-1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
joern-lib-joern-1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
joern-lib-joern-1 | at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
joern-lib-joern-1 | Connection closed.
joern-lib-joern-1 | Connection closed.
Latest cpggen-oss is built from here - https://github.com/AppThreat/joern/blob/master/.github/workflows/release3.yml
Uses a fork of codepropertygraph based on the scala 3 branch - https://github.com/AppThreat/codepropertygraph
Please consider upgrading to chen, which has a python runtime with HTTP API builtin.
Metadata such as owasp and cwe category etc.
Come up with a logic to detect whether a given function is a good quality validation function or not. The input should not be returned as-is for a sanitization method. Validation method should have sufficient complexity and control structures present.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.