GdPicture Light Imaging Toolkit <= 4.7.1 Arbitrary File Overwrite Vulnerability
An ActiveX control shipped with the GdPicture imaging toolkits exposes a SaveAsPDF method that lets a remote attacker create, overwrite or modify arbitrary files on the victim's machine. The text notes this could be chained 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 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 the text says this can be leveraged for remote code execution via hcp:// URLs, but notes it might only be exploitable in limited environments or non-default browser settings.
What the attacker needed
Victim uses the vulnerable ActiveX control; possibly non-default browser 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.
ActiveX is an old Microsoft technology that lets web pages load small programs on a Windows computer. Here one of those programs has a feature for saving a PDF that does not check where the file is written, so a malicious page could write files anywhere the user can. The text warns this may only work on unusual setups and that the remote code execution angle is a possibility, not a proven chain.
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.