Page MenuHomePhabricator

Raw HTML messages in MobileFrontend
Closed, ResolvedPublic

Description

in SpecialMobileDiff::getCommentHTML() rev-deleted-comment is used as raw HTML.

And then in SpecialMobileDiff::showFooter():

			$output->addHTML(
				$this->msg( 'rev-deleted-user' )->plain()
			);

There's also one false positive caused by T183174.

<file name="./includes/specials/SpecialMobileDiff.php">
  <error line="191" severity="warning" message="Calling method \OutputPage::addHTML() in \SpecialMobileDiff::showHeader that outputs using tainted argument $[arg #1]." source="SecurityCheck-XSS"/>
  <error line="332" severity="warning" message="Calling method \OutputPage::addHTML() in \SpecialMobileDiff::showFooter that outputs using tainted argument $[arg #1]." source="SecurityCheck-XSS"/>
  <error line="365" severity="warning" message="Calling method \OutputPage::addHTML() in \SpecialMobileDiff::showFooter that outputs using tainted argument $[arg #1]." source="SecurityCheck-XSS"/>
</file>

Event Timeline

Legoktm changed the visibility from "Custom Policy" to "Public (No Login Required)".
sbassett triaged this task as Medium priority.Oct 15 2019, 7:42 PM