Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/operators/inspect_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ bool InspectFile::evaluate(Transaction *transaction, const std::string &str) {
std::string res;
std::string openstr;

// SECURITY HARDENING NOTE:
// popen() executes via shell with concatenated arguments.
// Current inputs are engine-controlled, but replacing this
// with argv-based exec/spawn would remove shell parsing risk.


openstr.append(m_param);
openstr.append(" ");
openstr.append(str);
Expand Down
Loading