Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.npm/
node_modules/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"@angular/core": "^13.3.3",
"quill": "1.3.7",
"cloudron-sysadmin": "1.0.0",
"openclaw": "2026.4.14",

Check failure

Code scanning / Fluid Attacks SCA

Use of openclaw at version 2026.4.14 with GHSA-xmxx-7p24-h892 in alejolagosm/machine_flow/package.json Error

Use of openclaw at version 2026.4.14 with GHSA-xmxx-7p24-h892 in alejolagosm/machine_flow/package.json

Check failure

Code scanning / Fluid Attacks SCA

Use of openclaw at version 2026.4.14 with GHSA-mr34-9552-qr95 in alejolagosm/machine_flow/package.json Error

Use of openclaw at version 2026.4.14 with GHSA-mr34-9552-qr95 in alejolagosm/machine_flow/package.json

Check failure

Code scanning / Fluid Attacks SCA

Use of openclaw at version 2026.4.14 with GHSA-xh72-v6v9-mwhc in alejolagosm/machine_flow/package.json Error

Use of openclaw at version 2026.4.14 with GHSA-xh72-v6v9-mwhc in alejolagosm/machine_flow/package.json

Check failure

Code scanning / Fluid Attacks SCA

Use of openclaw at version 2026.4.14 with GHSA-f934-5rqf-xx47 in alejolagosm/machine_flow/package.json Error

Use of openclaw at version 2026.4.14 with GHSA-f934-5rqf-xx47 in alejolagosm/machine_flow/package.json
"script-manager": "0.8.6",
"slug": "0.9.0",
"ajv": "^8.12.0"
Expand All @@ -17,4 +18,4 @@
"name": "test",
"private": false,
"version": "1.0.0"
}
}
55 changes: 55 additions & 0 deletions unsafe_c_sharp_raw_sql_with_user_input.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using WebApplication1.Controllers;

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Data.SqlClient;

namespace WebFox.Controllers
{
[ApiController]
[Route("[controller]")]
public class UnsafeSqliInjection : ControllerBase
{
[HttpGet("{id}")]
public string DoSqli(string id)
{
string conString = "I AM a connection String";
using (SqlCommand cmd = new SqlCommand("SELECT * FROM users WHERE userId = '" + id + "'"))

Check failure

Code scanning / Fluid Attacks SAST

Use of user controlled parameters for querying the database in alejolagosm/machine_flow/unsafe_c_sharp_raw_sql_with_user_input.cs Error

Use of user controlled parameters for querying the database in alejolagosm/machine_flow/unsafe_c_sharp_raw_sql_with_user_input.cs
{
using (SqlConnection con = new SqlConnection(conString))
{
con.Open();
cmd.Connection = con;
SqlDataReader reader = cmd.ExecuteReader();
string res = "";
while (reader.Read())
{
res += reader["userName"];
}
return res;
}
}
}

[HttpGet("{username}")]
public string DoSqli(string username)
{
string insecure_query = "SELECT * FROM users WHERE userId = '" + username + "'";
insecure_command = sqcontext.Database.ExecuteSqlCommand(insecure_query);

Check failure

Code scanning / Fluid Attacks SAST

Use of user controlled parameters for querying the database in alejolagosm/machine_flow/unsafe_c_sharp_raw_sql_with_user_input.cs Error

Use of user controlled parameters for querying the database in alejolagosm/machine_flow/unsafe_c_sharp_raw_sql_with_user_input.cs
}
}

public class SafeSqli
{
// This is not deterministic.
// Maybe username is not a user parameter, but only called within the code
public string Sqli(string username)
{
string insecure_query = "SELECT * FROM users WHERE userId = '" + username + "'";
insecure_command = sqcontext.Database.ExecuteSqlCommand(insecure_query);
}
}
}
Loading