Skip to content

Instantly share code, notes, and snippets.

@conikeec
Created October 10, 2019 18:28
Show Gist options
  • Save conikeec/e27ac7008f409b20aa71ece7312ad93e to your computer and use it in GitHub Desktop.
Save conikeec/e27ac7008f409b20aa71ece7312ad93e to your computer and use it in GitHub Desktop.
// create a CPG for the accompanying socket server project
val serverCpg = createCpgAndSp("/Users/chetanconikee/slgithub/CVE-2017-5645/Log4jSocketServer.jar")
res1: Workspace =
__________________________________________________________________________________________
| name | overlays | loaded|
|=========================================================================================|
| Log4jSocketServer.jar | semanticcpg(l),dataflow(l),tagging(l),securityprofile(l)| true |
// if you happen to be using another project that utlizes the socket server
val clientCpg = createCpgAndSp("[client-project]")
// get active CVEs via BOM (Bill of Materials/Open source dependencies) for clientCpg and
// identify if it's succeptible to CVE-2017-5645
getBOM(clientCpg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment