Skip to content

Commit

Permalink
Added rate limiters to new backend routes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianMeiler committed Feb 19, 2024
1 parent 79acd27 commit 7a3b51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ app.get('/logout', limiter, async (req, res) => {



app.get('/loginUser', async (req, res) => {
app.get('/loginUser', limiter, async (req, res) => {
const u = req.query.username;
const p = req.query.password;

Check warning

Code scanning / CodeQL

Sensitive data read from GET request Medium

Route handler
for GET requests uses query parameter as sensitive data.

Expand Down Expand Up @@ -170,7 +170,7 @@ app.get('/loginUser', async (req, res) => {
return res.status(code).json(json);
})

app.get('/registerAccount', async (req, res) => {
app.get('/registerAccount', limiter, async (req, res) => {
const username = req.query.username;
const password = req.query.password;

Check warning

Code scanning / CodeQL

Sensitive data read from GET request Medium

Route handler
for GET requests uses query parameter as sensitive data.

Expand Down

0 comments on commit 7a3b51a

Please sign in to comment.