Doctor-Appointment icon indicating copy to clipboard operation
Doctor-Appointment copied to clipboard

SQL injection vulnerability in feedback submission endpoint

Open codeCraft-Ritik opened this issue 8 months ago • 0 comments

Summary:

The feedback endpoint directly inserts user input into SQL without sanitization or parameterized queries, enabling SQL injection.

Description:

User-controlled values from POST are assigned directly and interpolated into SQL:

  • name
  • email
  • comment

No escaping or prepared statements are used.

Steps to Reproduce:

  1. Open feedback form.
  2. Submit a crafted payload in comment or name field (for example quote-based injection string).
  3. Observe SQL behavior deviation or error output.

Expected:

Input should be parameterized and safely handled.

Actual:

Raw input is embedded into SQL query string.

Impact:

Critical security risk: data tampering, unauthorized query execution, possible data loss/exfiltration.

Suggested Labels:

security, backend, sql-injection, high priority

codeCraft-Ritik avatar Mar 24 '26 12:03 codeCraft-Ritik