News for hackers. Stuff that matters.
Re:Ask HN: What's your favorite way of getting a web app up ... by sethammons on Sunday June 03, 2018 @11:02AM (#17219844)
If it is open to the public, your train wreck cannot be open to common vulnerabilities like sql injection. Full stop. You can avoid unit or integration tests, not complete features, or cut any corner you want aside from basic security.
Re:Ask HN: What's your favorite way of getting a web app up ... by Mikushi on Sunday June 03, 2018 @12:31PM (#17220317)
Don't presume anyone writing PHP is a trainwreck. With PHP7+ you can write modern applications that are perfectly secure, as much as anything you'd write with any other scripting language.
Re:Ask HN: What's your favorite way of getting a web app up ... by lol768 on Sunday June 03, 2018 @04:35PM (#17221721)
> Don't presume anyone writing PHP is a trainwreck.

I'm unsure anyone here is disputing this - my original comment said as much:

> Can you write secure code in PHP? Absolutely. But it's more effort and easier to get wrong.

It's undeniably more work to get right, though. As an example, if I create a new django app "the CSRF middleware is activated by default in the MIDDLEWARE setting" - you're safe by default.

I mean, even as a basic DiD measure PHP could use SameSite cookies by default for its sessions - but does it?

Re:Ask HN: What's your favorite way of getting a web app up ... by mcovey on Monday June 04, 2018 @01:05PM (#17229842)
Sure it can. Almost every website on the internet right now has undiscovered security holes. Obviously you won't be leaving them open on purpose, but not using a framework is a legit choice and "it provides security that you can't implement without one" is a bad argument.

Yes there's convenience in "somebody already thought about everything you need before you did" but there are also security libraries, checklists, tutorials, and other tools besides a full framework with all its baggage to help developers write secure code.

Re:Ask HN: What's your favorite way of getting a web app up ... by sethammons on Monday June 04, 2018 @05:02PM (#17232426)
I'm not saying anything either way on frameworks. But SQL injection is into to web development stuff. You can worry about cross site scripting or other security stuff later for a PoC,but not SQL injection.