Security - input sanitization (validation)

Options

Hi,

I'm building a process (API endpoint) which starts with a user input from a Webflow form.

I am aware that it is good practive to sanitize such input on backend, but I'm wondering is that an issue with a solution like Xano? I will have some simple validation on the form (for example for basic email format check), but it might not be enough to protect the databse from potential SQL injection. Does Xano take care of that for me (out of the box) or should I add some kind of function to validate the input? If so, how would I go about it?

Comments

  • Sean Montgomery
    Sean Montgomery Administrator

    ADMIN

    Options

    @Tom Wolf great question. Xano escapes all inputs for you, so there is no need to worry about SQL injections.

    We may be opening up support for direct raw SQL queries in a new database statement within the function stack, but that is still being worked on. If there is any risk to SQL injections there, we will make sure to put warnings around the feature.

  • Tom Wolf
    Tom Wolf Member
    Options

    Great, thanks @Sean Montgomery !