Commit 9f3c6a3
[SPARK-54624][UI] Ensure user name in historypage get escaped
### What changes were proposed in this pull request?
This PR aims to escape user name displayed in historypage.
### Why are the changes needed?
Similar to the issue resolved in #52851, user name should also get escaped because arbitrary user name can be set through the env var `SPARK_USER`.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
User name displayed in historypage is escaped even if the name is like `<script>alert('XSS')</script>`
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #53364 from sarutak/fix-username-xss.
Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>1 parent 59fcc0f commit 9f3c6a3
File tree
1 file changed
+5
-1
lines changed- core/src/main/resources/org/apache/spark/ui/static
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
| |||
0 commit comments