Security
This release closes the issues a security review of the frame found. The frame is still meant for a private network; these fixes are about other devices on that network and web pages open in a browser on it.
- Web pages can no longer use the frame's API. Through DNS rebinding or a cross-site form, a page on another site could read and change the frame from a browser on your network. The frame now answers only requests addressed to its IP, its
.localname or another local name, and refuses cross-site writes. Scripts, Home Assistant, the app and the image server are unaffected (see "Requests from web pages" indocs/API.md). - The setup hotspot has a password. It was an open network, so a look-alike "PhotoFrame - …" hotspot nearby could be sent your WiFi password. The setup screen's WiFi QR code now carries a random password, new on every boot: scan it with your phone's camera to join. The app (v1.7.0) scans it too.
- A WiFi password the network rejects is kept and retried. The frame used to erase it and open the setup hotspot, which a look-alike access point could trigger on purpose. It now shows a "Wi-Fi password rejected" screen and keeps trying. To set up WiFi again, wake the frame and hold the wake key for 5 seconds.
- The image server can't move the frame to another network. A config pushed by the image server could change the WiFi network, static IP, DNS, time server and Home Assistant URL. Those are now set only on the frame itself.
- HTTPS certificates are checked. Certificate checks were off for every connection. Each connection is now trusted explicitly: the CA bundle or the image server's pinned certificate, while a Home Assistant on your local network is accepted with its own certificate.
- The frame password resists guessing from many addresses at once, and a lockout can't be pushed out by other clients.
- Malformed input can't crash or wedge the frame: deeply nested JSON, multipart uploads with oversized or piecemeal headers, stalled uploads, an oversized BMP header, and album or file names that point outside the images folder.
Added
- Auto update firmware (off by default): the frame checks once a day and installs a new release on its own, and a scheduled wake waits up to 5 minutes for an install it started. Firmware that keeps crashing after an update is rolled back. (#170)
- Install an update from Home Assistant while the frame sleeps: it installs at the next wake.
- Mirror the picture left to right, for panels that show it mirrored. (#161)
X-Rotation-Triggeron image requests tells the server what asked for the picture. (#171)/api/system-inforeports the frame's IPv4 and IPv6 addresses.
Changed
- AI generation in the web UI uses current models, GPT Image 2.6 Flare and Nano Banana 2.1 by default: the ones it offered have been shut down.
- The external RTC keeps UTC; the local time older firmware stored is read once.
- The web flasher keeps the frame's settings.
Fixed
Installation
Web Flasher (Easiest)
Flash directly from your browser (Chrome/Edge/Opera required):
https://aitjcize.github.io/esp32-photoframe/#flash
Manually
Choose the appropriate merged binary for your board:
photoframe-firmware-waveshare_photopainter_73-merged.bin: For Waveshare 7.3" 7-color e-paperphotoframe-firmware-seeedstudio_xiao_ee02-merged.bin: For Seeed XIAO EE02photoframe-firmware-seeedstudio_reterminal_e1002-merged.bin: For Seeed reTerminal E1002photoframe-firmware-seeedstudio_xiao_ee04-merged.bin: For Seeed XIAO EE04photoframe-firmware-seeedstudio_reterminal_e1004-merged.bin: For Seeed reTerminal E1004photoframe-firmware-seeedstudio_reterminal_e1003-merged.bin: For Seeed reTerminal E1003 (10.3" grayscale)photoframe-firmware-seeedstudio_xiao_ee03-merged.bin: For Seeed XIAO EE03 (10.3" grayscale)photoframe-firmware-m5stack_m5paper_v11-merged.bin: For M5Stack M5Paper v1.0/v1.1 (4.7" grayscale)
# ESP32-S3 boards (everything except the M5Paper)
esptool.py --chip esp32s3 --port /dev/ttyUSB0 --baud 921600 write_flash 0x0 photoframe-firmware-[board]-merged.bin
# M5Stack M5Paper (ESP32)
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 write_flash 0x0 photoframe-firmware-m5stack_m5paper_v11-merged.binThe [board]-[version].elf files are debug symbols for decoding crash reports; they are not needed to install.