mirror of
https://github.com/github/codeql.git
synced 2026-08-04 01:13:00 +02:00
13 lines
252 B
Go
13 lines
252 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"os/exec"
|
|
)
|
|
|
|
func handler2(req *http.Request) {
|
|
path := req.URL.Query()["path"][0] // $ Source[go/command-injection]
|
|
cmd := exec.Command("rsync", path, "/tmp") // $ Alert[go/command-injection]
|
|
cmd.Run()
|
|
}
|