Skip to content

Escape output in adminhtml import info templates#87

Open
pbritka wants to merge 1 commit into
WeareJH:masterfrom
pbritka:feature/escape-adminhtml-templates
Open

Escape output in adminhtml import info templates#87
pbritka wants to merge 1 commit into
WeareJH:masterfrom
pbritka:feature/escape-adminhtml-templates

Conversation

@pbritka

@pbritka pbritka commented Jun 16, 2026

Copy link
Copy Markdown

Summary

import_info.phtml and info_type_files.phtml echo values without escaping — flagged by the Magento2 coding standard and an XSS risk for attacker-influenced import metadata. Dynamic output is wrapped in the block $escaper (escapeHtml / escapeHtmlAttr / escapeUrl).

Note: may overlap with the open #78 "PHP Codesniffer pass" — happy to rebase/coordinate.

The import_info.phtml and info_type_files.phtml templates echoed values
without escaping, which the Magento2 coding standard flags and is an XSS
risk for any attacker-influenced import metadata. Wrap dynamic output in
the block's $escaper (escapeHtml / escapeHtmlAttr / escapeUrl).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant