Chhida opened a new pull request, #52851:
URL: https://github.com/apache/spark/pull/52851
### What changes were proposed in this pull request?
In history Server main dashboard, the application name need to be escaped.
### Why are the changes needed?
Not escaped app name could lead to XSS
Exemple:
cat << EOF > script.py
from pyspark.sql import SparkSession
if __name__ == "__main__":
spark = SparkSession \
.builder \
.appName("<img src=x onerror=alert(/jedi
master/)><script>alert(/Hello there/)</script>") \
.getOrCreate()
print(spark.range(1000 * 1000 * 1000).count())
spark.stop()
EOF
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Tests already exist, it was manually tested.
### Was this patch authored or co-authored using generative AI tooling?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]