Add ping and user endpoints - #11
Conversation
🛡️ Conviso Application Security Scan ResultsSummary: 0 Critical | 7 High | 2 Medium | 1 Low 🔴 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')Severity: High | File: Request data detected in os.system. This could be vulnerable to a command injection and should be avoided. If this must be done, use the 'subprocess' module instead and pass the arguments as a list. See https://owasp.org/www-community/attacks/Command_Injection for more information. 🔴 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')Severity: High | File: User data detected in os.system. This could be vulnerable to a command injection and should be avoided. If this must be done, use the 'subprocess' module instead and pass the arguments as a list. 🔴 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')Severity: High | File: User-controlled data from a request is passed to 'execute()'. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use django's QuerySets, which are built with query parameterization and therefore not vulnerable to sql injection. For example, you could use 🔴 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')Severity: High | File: Detected possible formatted SQL query. Use parameterized queries instead. 🟠 Incorrect Type Conversion or CastSeverity: Medium | File: Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as SQLAlchemy which will protect your queries. ...and 1 more issues. |
New Flask endpoints for host ping and user lookup.
Note: intentionally vulnerable (command + SQL injection) for AST PR-scan testing.