Skip to content
File upload Write-up Intermediate

GdPicture Pro Imaging SDK <= 5.7.1 Arbitrary File Overwrite Vulnerability

The GdPicture ActiveX controls expose a SaveAsPDF() method that lets a remote attacker create, overwrite, or modify arbitrary files on the victim's machine. The text notes this could lead to remote code execution by accessing files through hcp:// URLs, though it may only work in limited environments or non-default browser settings.

karmainsecurity.com

Published on karmainsecurity.com

The GdPicture (1) Light Imaging Toolkit 4.7.1 GdPicture4S.Imaging ActiveX control (gdpicture4s.ocx) 4.7.0.1 and (2) Pro Imaging SDK 5.7.1 GdPicturePro5S.Imaging ActiveX control (gdpicturepro5s.ocx) 5.7.0.1 allows remote attackers to create, overwrite, and modify arbitrary files via the SaveAsPDF() method. NOTE: this…

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

Impact

An attacker could create, overwrite, or modify arbitrary files, and this could be leveraged for remote code execution by accessing files using hcp:// URLs, though the issue might only be exploitable in limited environments or non-default browser settings.

What the attacker needed

Victim uses affected ActiveX control; non-default browser settings may be needed

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.

ActiveX is an old Microsoft technology that lets web pages run small programs on a Windows computer. Here, a web page could tell one of those programs to save a PDF file anywhere on the disk, even over important system files. The text warns this might only work on unusual setups, but if it does, an attacker could replace a file that later runs code.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.