-
|
Hello, I recently read the analysis of fastjson using chain article, sink is can achieve jndi injection function - lookup (), but this sink point I can not query out, I would like to ask whether CodeQL can query out the built-in method of This is the full query for the file I executed, There is no error, but the result is empty. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Hi @zxcv0221, A couple of things spring to mind when I see your query:
Next up, you should read up on how to debug missing dataflow results here. Before you dive deep into that document, please try the first suggestion in that document:
In your example, you can right-click on the |
Beta Was this translation helpful? Give feedback.






Thanks for all the details 🙂. So it looks like the
lookupmethod onjavax.naming.Contextisn't included the database. That's whyJNDIMethoddoesn't have any results when you quick-eval it's "characteristic predicate" (i.e., the thing in theJNDIMethodclass that looks like a constructor). Socall.getMethod() instanceof JNDIMethodwill never be satisfied. Can you point me to the line in https://github.com/l4yn3/micro_service_seclab that you tried to capture with your definition ofisSink(i.e., the call tolookupon an object of typejavax.naming.Context)?