-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Has your issue been reported?
- I have searched the existing issues and confirm it has not been reported.
- I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
Current Behavior
Markdown Widget is introduced that in FF document.
You could use this widget in various applications like note-taking apps, forums, and blogging platforms.
For these type of user-content oriented usage, the widgets have to have functionality of sanitize before displaying.
But the widget causes crash with text data
.
Common note-taking apps will sanitized that (and nothing happen).
Expected Behavior
Sanitize and don't crash.
Steps to Reproduce
- Create text widget
- Create Page State of String
- Update the State with inputted text in the widget
- Create Markdown Widget valued from No.3
- Input
into No.1
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
IT4wheflxItIpbxZ+KXTbcAwpCYWMjs2R+cO0u5tdCs8Guv2PbMyZM+lYldUOczjYWNYOE20gmMX/MrViPD1Nvk3FzqCf4BlwsxyaTuXIVqmVqaMEb63b3dTO+lMFVSl55iZuhFSNthhV1Fm3TuEI9isYADZHu/PPjE3MOaoXdeK2SrDX1iXc2URm05KZDPz
Context
The Markdown widget can't used for user-content oriented purpose as like FF document says.
If a malicious person posted this text, it would cause a crash in the apps of other users who viewed that content.
Visual documentation
Additional Info
If the lack of sanitization is a specification of the widget, then the documentation should be revised to avoid misunderstandings.
Environment
- FlutterFlow version: 4.1.34
- Platform: Web
- Browser name and version: Chrome 122.0.6261.129 (Official Build) (arm64)
- Operating system and version affected: macOS Sonoma 14.2.1
