-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Mitre Caldera API to communicate with Sandcat agents #521
base: main
Are you sure you want to change the base?
Conversation
Summary: buck build //security/redteam/purple_team/ttpforge:ttpforge --out ttpforge buck run //security/redteam/purple_team/ttpforge:ttpforge -- serve Differential Revision: D59696048
This pull request was exported from Phabricator. Differential Revision: D59696048 |
return | ||
} | ||
fullFilePath := cwd + "/" + filePath | ||
if _, err := os.Stat(fullFilePath); err != nil { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
w.Header().Set("Filename", filePath) | ||
|
||
// Serve the file | ||
http.ServeFile(w, r, filePath) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
|
||
// Create a new file on disk | ||
dstDir := fmt.Sprintf("%s/uploads/%s", cwd, agentID) | ||
err = os.MkdirAll(dstDir, os.ModePerm) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
return | ||
} | ||
dst := fmt.Sprintf("%s/%s", dstDir, fh.Filename) | ||
out, err := os.Create(dst) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
Summary:
buck build //security/redteam/purple_team/ttpforge:ttpforge --out ttpforge
buck run //security/redteam/purple_team/ttpforge:ttpforge -- serve
Differential Revision: D59696048