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

Exposure of MongoDB ID in Invoice URL #1154

Open
imashish22 opened this issue Aug 6, 2024 · 2 comments
Open

Exposure of MongoDB ID in Invoice URL #1154

imashish22 opened this issue Aug 6, 2024 · 2 comments

Comments

@imashish22
Copy link

Bug Report

Describe the bug
The MongoDB ID of invoices is exposed in the URL, which could potentially lead to security issues such as unauthorized access or information leakage.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the URL of an invoice, for example: https://cloud.idurarapp.com/invoice/read/66b1ba0168bee6aeb74f7dca
  2. Observe that the MongoDB ID is visible in the URL.

Expected behavior
The URL should not expose sensitive information such as the MongoDB ID. Instead, it should use a more secure identifier or encryption to mask the actual ID.

Screenshots
image

Additional context
To prevent the exposure of sensitive IDs, consider implementing one of the following solutions:

  1. ID Encryption: Encrypt the MongoDB ID before including it in the URL and decrypt it server-side when the request is processed.
  2. UUIDs: Use UUIDs (Universally Unique Identifiers) instead of MongoDB IDs for URLs.
  3. Token-based Access: Generate a secure, random token for each invoice and use it in the URL. Validate this token server-side to retrieve the actual MongoDB ID.

Implementing these measures will enhance the security of the application and protect sensitive data from being exposed.

@amasoft
Copy link

amasoft commented Aug 27, 2024

@imashish22 good day,
I will like to work on this can you assign it to me

@ShravastiSiddharth
Copy link

I would like to fix this bug, can you assign it to me so that I can start working

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

No branches or pull requests

3 participants