(CVE-2023-2315) Path Traversal in OpenCart versions 4.0.0.0 to 4.0.2.2
OpenCart versions [redacted] to [redacted] contain a path traversal flaw that lets an authenticated backend user empty any file on the server that has write permissions. An attacker with a backend account could therefore destroy files, causing loss of integrity and availability.
starlabs.sg
Published on starlabs.sg
Opencart is an open source ecommerce platform for online merchants to self-host and list their products for sale. It is structured in a way that allows for a quick setup and Opencart also provides a cloud solution for users who do not want to have an on-premise setup.
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 application builds a file path from user-supplied input without normalising it or confining it to an intended directory, so '..' segments escape the expected location.
Impact
An authenticated backend user could empty any file on the server that the web process can write to, harming integrity and availability; the text does not claim confidentiality impact.
What the attacker needed
An authenticated backend account
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.
Path traversal is when a program accepts a file path from a user and does not stop that path from climbing out of the intended folder using '..' sequences. Here, someone who can log into the administration area could point the software at a file outside the folder it should touch and wipe its contents. The attacker needs a valid backend login, but no special privileges beyond that.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.