Skip to content

SQL_Injection @ BookDetail_jsp.java #8

@cx-margarita-levitm

Description

@cx-margarita-levitm

SQL_Injection issue exists @ BookDetail_jsp.java in branch master

The application's openrs method executes an SQL query with executeQuery, at line 54 of /Ex/Folder 12 23/BookDetail_jsp.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 paramName; this input is then read by the getParam method at line 163 of /Ex/Folder 12 23/BookDetail_jsp.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: margaritalm
Repository: SastAndOsaSource
Repository Url: https://github.com/margaritalm/SastAndOsaSource
CxAST-Project: margaritalm/SastAndOsaSource
CxAST platform scan: e53cc528-114d-45f1-b736-aa181483f8e1
Branch: master
Application: SastAndOsaSource
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
CWE: 89
Lines: [163](https://github.com/margaritalm/SastAndOsaSource/blob/master/Ex/Folder 12 23/BookDetail_jsp.java#L163)


References
Read more

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions