3,818 questions
0 votes
0 answers
62 views
+50
How to update multiple records with different values and SQL injection protection with raw SQL in prisma?
For November 2025, the Prisma does not support the updating of multiple records with different values. Although the transactions are being considered as main workaround for such cases, the transaction ...
1 vote
2 answers
106 views
Sql injection protection when sending json as a sql function parameter
I am sending a json array with filter parameters from ExtJs in the sql function parameter. filters look like this: [{"field":"product_type_id","data":{"type":&...
1 vote
2 answers
157 views
SQL unquoted identifier validation
I'm working on a .NET application that needs to execute SQL parameterized by database objects like tables or columns. The application supports both the Microsoft SQL Server and Oracle ADO.NET ...
1 vote
1 answer
115 views
Creating Postgres Users and Granting Permissions from Go
I'm trying to create database users in my Postgres database from Golang, and I can't seem to get queries to run. I'm able to establish a connection, but I cannot run create user X with password Y and ...
2 votes
2 answers
164 views
Entity Framework Core is using literal values instead of parameters. Do I need to worry for SQL injection
I have an extension for Entity Framework Core query to support between and I see that the SQL being parsed includes literal values. Is it vulnerable for SQL injection attacks? This is the extension ...
0 votes
1 answer
110 views
Web Application Firewall (NGINX ModSecurity) - wrong SQL Injection Attack Detection
Our company site is behind WAF based on NGINX ModSecurity. And permanently in WAF logs we see blocked requests from site forms. Example: SQL Injection Attack Detected via libinjection - Matched Data: ...
-1 votes
1 answer
163 views
Improper neutralization of special elements used in an SQL Command ('SQL Injection')
I am working on a project and want to delete the table by passing the table_name which is coming from an API request. I want to bypass SQL Injection warning for delete query. I am using Python, and ...
-2 votes
1 answer
107 views
Why does psycopg2 still allow SQL injection with dynamically constructed table names [closed]
I'm developing a multi-tenant Python web application where users need to query different database tables based on their client context. The challenge is constructing secure SQL queries when table ...
1 vote
1 answer
86 views
Is COL_LENGTH sufficient for parameter sanitation
I have a stored procedure that we are scanning using some AI tools to look for vulnerabilities. I am doing a dynamic SQL statement with an order by clause and that parameter for that order by I am ...
1 vote
0 answers
83 views
Is this code already SQL injection proof or should I use prepared statements? [duplicate]
I was asked to make this code SQL Injection proof: <?php $connection = mysqli_connect("localhost", "root", "password", "users_db"); $query = "SELECT * ...
1 vote
2 answers
116 views
Not able to pass Column names as parameterised in ADD COLUMNS command in databricks-sql connector (needed to resolve SQL Injection Snyk Vulnerability)
I'm developing a web application that interacts with Databricks using the Databricks SQL connector. The application allows users from different teams to add/rename/delete columns of existing tables. ...
1 vote
1 answer
130 views
Psalm does not detect SQL Injection
I'm trying to use Psalm to detect SQL Injections. I have the following code : $pdo = new PDO("mysql:host=db;dbname=tp;port=3306", "user", "password");; // VULNERABLE ...
0 votes
0 answers
80 views
Why is this method flagged as vulnerable to SQL Injection in GitLab?
I'm working on a C# application using Npgsql to query a PostgreSQL database. I have the following method that constructs a query dynamically while using parameterized queries to prevent SQL injection: ...
0 votes
0 answers
85 views
Add repeated strings in burp suite intruder
I am working on a CTF. I need to do a SQL injection into a dummy website. In this website when signing up there is not input clean up of any sorts for the username field, and as a friend confirmed it ...
0 votes
1 answer
297 views
How to Safely Parameterize Table Names in C# to prevent SQL Injection?
I'm using Dapper in my project and I want to pass table name as a dynamic parameter in the query. This is my code: var tableName = GetTableNameDynamically<TEntity>(); using (var builder = new ...