Skip to content

SQL_Injection @ Install.java #89

Description

@juegge

SQL_Injection issue exists @ Install.java in branch master

The application's setup method executes an SQL query with executeUpdate, at line 127 of /src/main/java/org/cysecurity/cspf/jvl/controller/Install.java. The application constructs this SQL query by embedding an untrusted string into the query without proper sanitization. The concatenated string is submitted to the database, where it is parsed and executed accordingly.

An attacker would be able to inject arbitrary syntax and data into the SQL query, by crafting a malicious payload and providing it via the input ""adminuser""; this input is then read by the processRequest method at line 60 of /src/main/java/org/cysecurity/cspf/jvl/controller/Install.java. This input then flows through the code, into a query and to the database server - without sanitization.

This may enable an SQL Injection attack.

Namespace: jvlstuff
Repository: JavaVulnerableLab_for_AST
Repository Url: https://github.com/jvlstuff/JavaVulnerableLab_for_AST
CxAST-Project: jvlstuff/JavaVulnerableLab_for_AST
CxAST platform scan: 0b64039c-d08f-4faa-9e25-fb3006178c74
Branch: master
Application: JavaVulnerableLab_for_AST
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
CWE: 89
Lines: 58 60


References
Read more

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions