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

Feature/wallet app #22

Merged
merged 67 commits into from
Apr 24, 2024
Merged

Feature/wallet app #22

merged 67 commits into from
Apr 24, 2024

Conversation

yntpdotme
Copy link
Owner

Week-8 MERN + Tailwind Project

  • Implemented frontend user interface with CRUD functionality.
  • Developed backend features for user authentication and CRUD operations.
  • Integrated Tailwind CSS for quick and responsive UI styling.
  • Leverage React Query for efficient data fetching and caching.
  • Recoil for managing global client side states.

@yntpdotme yntpdotme merged commit 9c0f926 into main Apr 24, 2024
1 check passed

const routes = app => {
app.use(express.json({limit: '16kb'}));
app.use(cookieParser());

Check failure

Code scanning / CodeQL

Missing CSRF middleware High

This cookie middleware is serving a
request handler
without CSRF protection.
This cookie middleware is serving a
request handler
without CSRF protection.
This cookie middleware is serving a
request handler
without CSRF protection.
This cookie middleware is serving a
request handler
without CSRF protection.
This cookie middleware is serving a
request handler
without CSRF protection.
This cookie middleware is serving a
request handler
without CSRF protection.
This cookie middleware is serving a
request handler
without CSRF protection.
const LocalStorage = {
get(key) {
const item = localStorage.getItem(key);
return item ? JSON.parse(item) : 'null';

Check failure

Code scanning / CodeQL

Hard-coded credentials Critical

The hard-coded value "null" is used as
authorization header
.
const {filter = '', page = 1, limit = 10} = req.query;

// This regex matches each word in a name starting with "filter".
const regex = new RegExp(`\\b${filter}`, 'i');

Check failure

Code scanning / CodeQL

Regular expression injection High

This regular expression is constructed from a
user-provided value
.
Comment on lines +90 to +92
const recipientWallet = await Wallet.findOne({
userId: recipientId,
}).session(session);

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.
).session(session);

await Wallet.updateOne(
{userId: recipientId},

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.

const {name, email, password} = req.body;

let user = await User.findOne({email});

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.

const {email, password} = req.body;

const user = await User.findOne({email});

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.
@yntpdotme yntpdotme deleted the feature/wallet-app branch April 24, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant