I have a command button with a confirm action using primefaces:
<p:commandButton value="Test"
rendered="..."
action="#{controller.actionMethod(param)}">
<p:confirm header="Confirmation" escape="false" message="This is a really long message test <br/>
This is a really long message test."/>
</p:commandButton>
I've read that turning off escape is a potential XSS attack vulnerability, so I am trying to fix this issue without the use of a line break in the message (and allow for escape=true)
The confirmDialog is global:
<p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
<p:commandButton value="Yes"
type="button" styleClass="ui-confirmdialog-yes" icon="ui-button-icon-left ui-icon ui-c ui-icon-check" />
<p:commandButton value="No"
type="button" styleClass="ui-confirmdialog-no" icon="ui-button-icon-left ui-icon ui-c ui-icon-close" />
</p:confirmDialog>
I've tried using styling using pre-line wrapping, but I haven't had luck. Am I chasing a non-issue? Is this actually an XSS vulnerability?