Adobe Photoshop PostScript hsbw Out-Of-Bounds Read Information Disclosure Vulnerability
Adobe Photoshop fails to properly validate user-supplied data when processing the hsbw command in PostScript, causing a read past the end of an allocated buffer. A remote attacker could disclose sensitive information, and could combine this with other flaws to execute code in the context of the current process.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Adobe Photoshop. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the PostScript interpreter does not check the length or bounds of data supplied to the hsbw command before reading it, so it reads past the end of an allocated buffer.
Impact
An attacker could disclose sensitive information, and could leverage this in conjunction with other vulnerabilities to execute code in the context of the current process; the victim must visit a malicious page or open a malicious file.
What the attacker needed
Victim opens a malicious file; victim visits a malicious page
The fix
Adobe issued an update to correct this vulnerability.
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 report has not been written yet. The Original tab links to the source.
PostScript is a page description language that Photoshop can interpret, and the hsbw command is one of its instructions. The program reads more data than it actually has, so it can leak memory contents that were never meant to be seen. This is called an out-of-bounds read, and on its own it usually leaks information rather than taking over the machine.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.