Textbox sanitization #16

Closed
opened 2026-06-07 15:58:18 +02:00 by rueeggeandre · 1 comment
Collaborator

Sanitize the text inputs given by the user to prevent injection

Sanitize the text inputs given by the user to prevent injection
rueeggeandre self-assigned this 2026-06-07 15:58:24 +02:00
Author
Collaborator
  • Backend now validates and normalizes all JSON input.
  • Text fields must be strings and have length limits.
  • Non-printing control characters are removed.
  • Marker coordinates, visibility values, marker counts, and image metadata are validated.
  • Clients can no longer inject arbitrary comments through journey updates.
  • HTML text and attributes are properly escaped before rendering.
  • Unsafe URL schemes such as javascript: are rejected.
  • Marker popup/title stored-XSS paths are fixed.
  • Raw HTML in Markdown renders as text instead of executing.
  • Frontend fields now mirror backend length limits.
- Backend now validates and normalizes all JSON input. - Text fields must be strings and have length limits. - Non-printing control characters are removed. - Marker coordinates, visibility values, marker counts, and image metadata are validated. - Clients can no longer inject arbitrary comments through journey updates. - HTML text and attributes are properly escaped before rendering. - Unsafe URL schemes such as javascript: are rejected. - Marker popup/title stored-XSS paths are fixed. - Raw HTML in Markdown renders as text instead of executing. - Frontend fields now mirror backend length limits.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kohlerjoshua/FHGR_Frontend_Group_3_Project#16
No description provided.