PKP-WAL <= 3.5.0-1 (baseColour) LESS Code Injection Vulnerability
The PKP Web Application Library's template manager passes user-controlled theme settings into the LESS parser without proper sanitisation. An attacker with the ability to update theme settings could inject LESS code that is compiled and executed.
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 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
Impact
An attacker who can update theme settings could inject and execute LESS code through the compiler, though the text does not describe the concrete consequences.
What the attacker needed
Ability to update Theme Settings
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.
LESS is a stylesheet language that gets compiled into CSS. The application takes values from a theme settings form and feeds them into the LESS compiler without checking them. Someone who can change those settings could slip in extra LESS code that the compiler then processes.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.