aboutsummaryrefslogtreecommitdiff
path: root/broker/upload-guard.mjs
AgeCommit message (Collapse)Author
3 daysbroker: refuse uploads from outside the staging directoryIgor Soarez
page.upload and a raw DOM.setFileInputFiles through cdp.call now have to name files whose real path is under /tmp/pi-chrome-uploads (PI_CHROME_UPLOAD_DIR), on the broker's host. Anyone holding the token could otherwise attach any file the user can read to a page.