mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
continue to convert paramiko query to a more general query,
the proxy command is not a secondary command execution so we can add proxy command to SystemCommandExecution::Range, update QLDocs, add a proper Paramiko test case fix a typo
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import python
|
||||
import experimental.dataflow.TestUtil.DataflowQueryTest
|
||||
import experimental.semmle.python.security.SecondaryServerCmdInjection
|
||||
import FromTaintTrackingConfig<ParamikoConfig>
|
||||
import FromTaintTrackingConfig<SecondaryCommandInjectionConfig>
|
||||
|
||||
@@ -23,5 +23,5 @@ async def read_item(cmd: str):
|
||||
|
||||
@app.get("/bad3")
|
||||
async def read_item(cmd: str):
|
||||
stdin, stdout, stderr = paramiko_ssh_client.connect('hostname', username='user',password='yourpassword',sock=paramiko.ProxyCommand(cmd)) # $ result=BAD
|
||||
paramiko_ssh_client.connect('hostname', username='user',password='yourpassword',sock=paramiko.ProxyCommand(cmd)) # $ result=BAD
|
||||
return {"success": "OK"}
|
||||
|
||||
Reference in New Issue
Block a user