I just took over a quite recent sails codebase done a "professional" firm and I recently discovered that blueprints were enabled in production. This gave access to the whole database without any authentication. My belief is that you should provide a framework that is secure out of the box and it's not helping users to enable blueprints in production by default.
@Sytten Thanks for posting! We'll take a look as soon as possible.
In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.
For help with questions about Sails, click here.
I would love to work on this. What do you think? @johnabrams7 @madisonhicks
Thanks so much for pointing this out, @Sytten! We completely agree. Updating this in Sails core means changing the implicit default behavior of Sails, though, which constitutes a breaking change. A better option might be to change the default settings in sails-generate, which would only affect newly generated apps, and would therefore not be a breaking change.
We appreciate your enthusiasm for this project, @georgeben, and we welcome your collaboration! If you're still up for it, here's the general order of what needs to be done:
sails-docs to reflect the proposed behavior. This means going into the docs, finding any places where the default settings for blueprints are mentioned, then updating them to reflect the proposed behavior.sails-generate such that Sails core鈥檚 default implicit behavior is overridden, then PR the change.If you do submit PRs that address this issue, whether to sails-docs or sails-generate, linking to them in this issue thread would help us a lot.
Thanks again!
I agree with the proposed solution, I would even go a bit further and add a clear warning in the documentation about this and mention it in bold in the changelog.
Most helpful comment
I agree with the proposed solution, I would even go a bit further and add a clear warning in the documentation about this and mention it in bold in the changelog.