Skip to content
Path traversal Write-up Intermediate

Open Journal Systems <= 3.5.0-1 (NativeXmlIssueGalleyFilter.php) Path Traversal Vulnerability

The Native XML import plugin in Open Journal Systems did not sanitise the file name supplied in an imported XML file before using it as the server-side file name. An attacker able to import a crafted XML file could therefore write files to locations outside the intended directory.

karmainsecurity.com

Published on karmainsecurity.com

The vulnerability exists because user input passed to the “Native XML Plugin” through the issue -> issuegalleys -> issuegalley -> issuefile -> filename tag of the imported XML file is not properly sanitized before being used to set the “server-side file name”, which is later used as the final part of a variable which…

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 plugin used the user-supplied file_name value directly as the final part of a server-side path passed to writeFile() without validating or sanitising it against directory traversal.

Impact

An attacker who can import a crafted XML file could write files outside the intended directory, which may lead to further compromise of the server.

What the attacker needed

Ability to import a crafted XML file

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.

Open Journal Systems is software for running academic journals online. It has a feature that imports journal content from an XML file, and one field in that file is meant to be just a file name. Because the software trusted that field, someone could put a path in it that points outside the folder where files should go, letting them place a file somewhere else on the server.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.