horilla-hr: Horilla: Server-Side Template Injection (SSTI) in Mail Preview Endpoints Allows Authenticated Users to Disclose Password Hashes and Server Metadata
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
Horilla is an HR and CRM software. From 1.0.0 until 1.6.0 and 2.0.0, the get_mail_preview handlers in recruitment/views/actions.py and employee/not_in_out_dashboard.py render a user-controlled body at /recruitment/get-mail-preview/ and /employee/get-employee-mail-preview with the full request object in the Django template context. An authenticated user with a valid CSRF token can use template attribute traversal to read request.user.password, request.META, and related-user attributes, exposing password hashes, personal data, and server request metadata. Django template restrictions prevent arbitrary code execution through this primitive, so the demonstrated impact is information disclosure and possible offline password cracking or account compromise. This issue is fixed in versions 1.6.0 and 2.0.0.
Text from CVE List
Affected versions 2
- horilla-hraffected: >= 1.0.0, < 1.6.0CVE List
- horilla-hraffected: >= 2.0.0-beta.1, < 2.0.0CVE List
References 4
- github.com/horilla/horilla-hr/commit/bd3eed2168b0167f273a8dd7f218f1b37320ac39Fixvia CVE List
- github.com/horilla/horilla-hr/commit/f1ca7cbc6216cb5bf19fc0174f49994ce5ffc2adFixvia CVE List
- github.com/horilla/horilla-hr/releases/tag/2.0.0Fixvia CVE List
- github.com/horilla/horilla-hr/security/advisories/GHSA-9p83-4w63-7c24Exploitvia CVE List