-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remote computers #7
Conversation
const ApiRouter = express.Router(); | ||
const bodyParser = require("body-parser"); | ||
ApiRouter.use(bodyParser.json({ limit: "10mb" })); | ||
ApiRouter.use(computerListCheck); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a file system access
This route handler performs
a file system access
ApiRouter.get("/computerlist", (_req, res) => { | ||
const computerList = JSON.parse(readFileSync(computerPath)); | ||
res.json(computerList); | ||
}); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a file system access
ApiRouter.post("/computerlist", (req, res) => { | ||
writeFileSync(computerPath, JSON.stringify(req.body)); | ||
res.json(req.body); | ||
}); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
No description provided.