Vulnerability DatabaseGHSA-m7hr-j867-3f34

GHSA-m7hr-j867-3f34
PHP vulnerability analysis and mitigation

Overview

A potential Cross-site Scripting (XSS) vulnerability was identified in multiple Zend Framework 2 view helpers (GHSA-m7hr-j867-3f34). The vulnerability existed because many view helpers were using the escapeHtml() view helper to escape HTML attributes, instead of the more appropriate escapeHtmlAttr(). This affected versions >= 2.0.0, < 2.2.7 and >= 2.3.0, < 2.3.1 (Zend Advisory).

Technical details

The vulnerability stemmed from improper HTML attribute escaping in multiple view helpers. The affected components included all Zend\Form view helpers, most Zend\Navigation view helpers, and HTML Element view helpers (htmlFlash(), htmlPage(), htmlQuickTime(), and Zend\View\Helper\Gravatar). The issue occurred when user data and/or JavaScript was used to seed attributes, creating potential XSS attack vectors (Zend Advisory).

Impact

The vulnerability could allow attackers to execute cross-site scripting (XSS) attacks when user data or JavaScript is used within HTML attributes. This could potentially lead to the execution of malicious scripts in users' browsers in the context of the vulnerable application (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Zend Framework versions 2.2.7 and 2.3.1. The fix involves updating all affected view helpers to use the escapeHtmlAttr() view helper when escaping data for HTML attributes. Users are recommended to upgrade to these patched versions immediately (Zend Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management