Skip to content
SQL injection Write-up Intermediate

PKP-WAL <= 3.5.0-1 (Institution Collector) SQL Injection Vulnerability

The Institution Collector class builds a database query without properly sanitising user input, allowing an attacker to inject SQL. An attacker could use this to read or alter data in the application's database.

karmainsecurity.com

Published on karmainsecurity.com

PKP Web Application Library (aka PKP-WAL or pkp-lib) version 3.4.0-9 and prior versions, and version 3.5.0-1 and prior versions, as used in Open Journal Systems (OJS), Open Monograph Press (OMP), and Open Preprint Systems (OPS).

The author, on karmainsecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the query builder in Collector::getQueryBuilder() concatenates user-controlled values into the SQL query instead of using parameter binding.

What the attacker needed

Access to the institution collector feature

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The software takes input from a user and puts it directly into a database command without cleaning it first. A malicious user can add extra database instructions, which the database then runs as if they were part of the original command. This is called SQL injection and can let an attacker read or change stored data.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.