| Summary: | [CLabel] script injection vulnerability | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | elias | ||||
| Version: | 1.0 | Flags: | ruediger.herrmann:
review?
(rsternberg) |
||||
| Target Milestone: | 1.2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 280142 | ||||||
| Attachments: |
|
||||||
|
Description
Rüdiger Herrmann
Created attachment 139096 [details]
Bugfix - escapes text before it is sent to the client
The second argument to WidgetLCAUtil#escapeText must be true to swallow mnemonics ampersand characters. Plus, we need an additional WidgetLCAUtil#replaceNewLines( text, "<br/>" ) like in StandardLabelLCA to get the same behavior as in SWT. See this example: CLabel label = new CLabel( shell, SWT.BORDER ); label.setText( "&One && Two\n\tSecond Line" ); We can either open a new bug for this issue or fix it right away, since we need to touch this code anyway. +1 for the patch as it fixes the problem. Committed the patch to CVS HEAD with one modification: the second argument to WidgetLCAUtil#escapeText is now true (see comment #2) I tranferred the other issues reported in comment #1 to bug 280266 |