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

first_name single quote broke mariadb sql #7359

Open
3 tasks done
c0derpwner opened this issue Jul 16, 2024 · 0 comments
Open
3 tasks done

first_name single quote broke mariadb sql #7359

c0derpwner opened this issue Jul 16, 2024 · 0 comments
Labels

Comments

@c0derpwner
Copy link

c0derpwner commented Jul 16, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Monica's Code of Conduct.

Bug description

single quotes brake application in first_name

Steps to reproduce

  • /people/add endpoint can upload a new contact on our crm
  • if i put in first_name filed giu ' lia then this can be uploaded
  • when app redirects on the people/h:id the page is blank!
  • maybe there's a potentially blind sql injection
  • version of monica is 4.1.2

Expected behavior

first_name can be sanitized ?

Environment

app.monicahq.com (monica v4)

Version of Monica

4.1.2

Installation method

None

Web server

Apache

Database engine version

MariaDB

Additional info

Thanks in advice for every new patch!

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

No branches or pull requests

1 participant