/

CVE-2026-123028

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Online Book Store admin_edit.php

CVE-2026-123028

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Potential unauthorized database access or modification

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

CVE-2026-123028 is a SQL injection vulnerability in the bookisbn argument handled by the Online Book Store's /admin_edit.php endpoint. If the endpoint is remotely reachable and input is incorporated into a database query without safe handling, an attacker may be able to interfere with that query and access or alter data, depending on database permissions.

CVE-2026-123028 is a SQL injection vulnerability in the bookisbn argument handled by the Online Book Store's /admin_edit.php endpoint. If the endpoint is remotely reachable and input is incorporated into a database query without safe handling, an attacker may be able to interfere with that query and access or alter data, depending on database permissions.

Affected context

The issue is reported in itsourcecode Online Book Store 1.0, in functionality associated with /admin_edit.php. The risk arises when the bookisbn value reaches SQL query construction in a way that allows input to change the query's intended structure. The description indicates that the attack can be initiated remotely; it does not specify whether authentication is required.

The issue is reported in itsourcecode Online Book Store 1.0, in functionality associated with /admin_edit.php. The risk arises when the bookisbn value reaches SQL query construction in a way that allows input to change the query's intended structure. The description indicates that the attack can be initiated remotely; it does not specify whether authentication is required.

Exploit preconditions

  • Attack surface: The /admin_edit.php endpoint must be reachable by the attacker.
  • Required access: The description does not establish whether authentication is required; access to the vulnerable endpoint is necessary.
  • Trigger point: Processing the bookisbn argument.
  • Why exploitation is possible: Input may be interpreted as part of SQL syntax if it is incorporated into a query without effective parameterization or equivalent safeguards.
  • Attack surface: The /admin_edit.php endpoint must be reachable by the attacker.
  • Required access: The description does not establish whether authentication is required; access to the vulnerable endpoint is necessary.
  • Trigger point: Processing the bookisbn argument.
  • Why exploitation is possible: Input may be interpreted as part of SQL syntax if it is incorporated into a query without effective parameterization or equivalent safeguards.

Why this happens

SQL injection occurs when an application combines data with SQL in a way that lets the data alter the query's structure. This is classified as CWE-89: Improper Neutralization of Special Elements used in an SQL Command. CWE-74 is also associated with the report and broadly describes improper neutralization of special elements in output used by another component.

SQL injection occurs when an application combines data with SQL in a way that lets the data alter the query's structure. This is classified as CWE-89: Improper Neutralization of Special Elements used in an SQL Command. CWE-74 is also associated with the report and broadly describes improper neutralization of special elements in output used by another component.

Potential impact

  • An attacker may be able to read data accessible to the application's database account.
  • Database records could be modified or deleted, depending on query behavior and account privileges.
  • Database availability or application functionality could be affected.
  • Exposed data could be used to support further attacks.
  • An attacker may be able to read data accessible to the application's database account.
  • Database records could be modified or deleted, depending on query behavior and account privileges.
  • Database availability or application functionality could be affected.
  • Exposed data could be used to support further attacks.

General mitigation guidance

Common defensive patterns include:

  • Use parameterized queries or prepared statements so input is treated as data, not SQL syntax.
  • Validate bookisbn against the expected format and reject values outside the application's requirements.
  • Avoid constructing SQL by concatenating request values into query strings.
  • Limit database-account permissions to the minimum required for the application's functions.
  • Apply consistent input handling and error management across database access paths.

Common defensive patterns include:

  • Use parameterized queries or prepared statements so input is treated as data, not SQL syntax.
  • Validate bookisbn against the expected format and reject values outside the application's requirements.
  • Avoid constructing SQL by concatenating request values into query strings.
  • Limit database-account permissions to the minimum required for the application's functions.
  • Apply consistent input handling and error management across database access paths.

How teams detect issues like this

  • Use static analysis to identify SQL statements built through string concatenation with request-controlled values.
  • Review database access code for use of parameterized queries and consistent handling of bookisbn.
  • Include checks in code review and CI policies that flag unsafe query construction.
  • Monitor application and database logs for unusual query errors or unexpected access patterns, while avoiding reliance on logs as the only control.
  • Use static analysis to identify SQL statements built through string concatenation with request-controlled values.
  • Review database access code for use of parameterized queries and consistent handling of bookisbn.
  • Include checks in code review and CI policies that flag unsafe query construction.
  • Monitor application and database logs for unusual query errors or unexpected access patterns, while avoiding reliance on logs as the only control.

Sources

SourceLink
github.comgithub.com/yomymy/Submit/issues/1
itsourcecode.comitsourcecode.com/
vuldb.comvuldb.com/cve/CVE-2026-123028
vuldb.comvuldb.com/submit/1027526
vuldb.comvuldb.com/vuln/431400
vuldb.comvuldb.com/vuln/431400/cti

Frequently asked

questions

The report states that an attack can be initiated remotely if the vulnerable endpoint is reachable. It does not specify whether authentication is required.

An attacker needs access to /admin_edit.php and the ability to submit a value for bookisbn. Any authentication or network restrictions depend on the deployment.

Use parameterized queries so supplied values cannot change the structure of SQL statements.

Review database query construction, validate inputs against expected formats, limit database privileges, and enforce automated checks for unsafe SQL patterns.

The report states that an attack can be initiated remotely if the vulnerable endpoint is reachable. It does not specify whether authentication is required.

An attacker needs access to /admin_edit.php and the ability to submit a value for bookisbn. Any authentication or network restrictions depend on the deployment.

Use parameterized queries so supplied values cannot change the structure of SQL statements.

Review database query construction, validate inputs against expected formats, limit database privileges, and enforce automated checks for unsafe SQL patterns.

Find out what's already
exploitable in your codebase.