-
Notifications
You must be signed in to change notification settings - Fork 283
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
Add files via upload #1114
Add files via upload #1114
Conversation
app.use("/api", require("./router-api")); | ||
|
||
let sessionOptions = session({ | ||
secret: "JavaScript is sooooooooo coool", |
Check failure
Code scanning / CodeQL
Hard-coded credentials
const postController = require("./controllers/postController"); | ||
const followController = require("./controllers/followController"); | ||
|
||
apiRouter.post("/login", userController.apiLogin); |
Check failure
Code scanning / CodeQL
Missing rate limiting
// user related routes | ||
router.get("/", userController.home); | ||
router.post("/register", userController.register); | ||
router.post("/login", userController.login); |
Check failure
Code scanning / CodeQL
Missing rate limiting
"/profile/:username", | ||
userController.ifUserExists, | ||
userController.sharedProfileData, | ||
userController.profilePostsScreen |
Check failure
Code scanning / CodeQL
Missing rate limiting
let sessionOptions = session({ | ||
secret: "JavaScript is sooooooooo coool", | ||
store: new MongoStore({ client: require("./db") }), | ||
resave: false, | ||
saveUninitialized: false, | ||
cookie: { maxAge: 1000 * 60 * 60 * 24, httpOnly: true }, | ||
}); |
Check warning
Code scanning / CodeQL
Clear text transmission of sensitive cookie
Explanation
Fixes #:
Checklist