Re:Building the Same App Using Various Web Frameworks
by Joeri on Wednesday September 11, 2024 @01:30AM
(#41508271)
I think a vanilla project will have fewer vulnerabilities, not more. Most of the vulnerabilities in frameworks are in the very complicated build tooling or deeply nested dependencies. A vanilla project doesn’t have that, so there are entire classes of vulnerabilities that don’t occur there. Vanilla does come with a higher risk of XSS, but basically all you need is a templating function that does XSS defense like lit-html and you’re good to go.
[ Parent
| on HN ]
Re:Building the Same App Using Various Web Frameworks
by Juliate on Wednesday September 11, 2024 @06:20AM
(#41509920)
Yes. A higher risk of SQL injection too, also. Or of brute force attacks/scans, but those are often not managed at the app/framework level anyway.
Re:Building the Same App Using Various Web Frameworks
by Joeri on Wednesday September 11, 2024 @12:57PM
(#41513198)
SQL injection will depend a lot on what backend language you’re working with. Most have platform database api’s that can do parameter binding.
Re:Building the Same App Using Various Web Frameworks
by norman784 on Wednesday September 11, 2024 @01:09PM
(#41513331)
I suppose that you are not writing your db driver from scratch and you are using a driver that was at least written in the last 10 years, so it will support for sure prepared statements and you will use it, that means no possibility of SQL injections.