Go to Photo Gallery > Global Settings > Watermark

Using the web browser inspector, change the input type of the "Watermark font size" and "Watermark opacity" fields from number to text, and put the following payload in them, then save: " autofocus onfocus=alert(/XSS/)//

Other settings which should be number (such as "Number of preloaded images" in the General tab) are also affected