Skip to content
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

added sessions integration and remaining schemas #40

Merged
merged 7 commits into from
Aug 28, 2023

Conversation

Naresh-chandanbatve
Copy link
Collaborator

if there is already an active session it will log in with the session data

@vercel
Copy link

vercel bot commented Aug 21, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @UBA-GCOEN on Vercel.

@UBA-GCOEN first needs to authorize it.

Comment on lines +8 to +16
app.use(session({
secret: process.env.SESSION_SECRET,
resave: false,
saveUninitialized: false
},
(next)=>{
next()
}
))

Check warning

Code scanning / CodeQL

Clear text transmission of sensitive cookie

Sensitive cookie sent without enforcing SSL encryption.
const router = express.Router();

import {userAdmin, signup, signin} from "../controllers/userAdmin.js";


router.get("/", userAdmin)
router.post("/signup", signup)
router.post("/signin", signin)
router.post("/signin", session, signin)

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [a database access](1), but is not rate-limited.

import {userStudent, signup, signin} from "../controllers/userStudent.js";


router.get("/", userStudent)
router.post("/signup", signup)
router.post("/signin", signin)
router.post("/signin",session, signin)

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [a database access](1), but is not rate-limited.
Comment on lines +8 to +16
app.use(session({
secret: process.env.SESSION_SECRET,
resave: false,
saveUninitialized: false
},
(next)=>{
next()
}
))

Check failure

Code scanning / CodeQL

Missing CSRF middleware

This cookie middleware is serving a [request handler](1) without CSRF protection. This cookie middleware is serving a [request handler](2) without CSRF protection.
Copy link
Collaborator

@Siddhant-Patil0203 Siddhant-Patil0203 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naresh good to go 👍

@vercel
Copy link

vercel bot commented Aug 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
arrow-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2023 2:29am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Issue related to Backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants