Entity Print
The module sends private session data to external servers when generating a PDF that includes external resources. Someone with an ordinary account could use this to steal session data and impersonate other users who print that content. They could access hidden session data and modify information on the site by acting as someone else.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if an attacker can create or edit content using a text format that allows images or styles from arbitrary sites.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate Entity Print to 8.x-2.20.
For developers: what the fix changed
The fix modifies `DomPdf::setupHttpContext` and adds `scopeHttpContextHeaders` and `isOwnHost` in `src/Plugin/EntityPrint/PrintEngine/DomPdf.php` to ensure that sensitive headers like session cookies and HTTP authentication are only sent to the site's own host, and disables following redirects.
src/Plugin/EntityPrint/PrintEngine/DomPdf.php+85 −7 fix