News for hackers. Stuff that matters.
Re:Show HN: Newsboard – A Hacker News Clone by krapp on Wednesday August 26, 2020 @08:24PM (#24288877)
It looks like you're using HTML form maxlength attributes to determine the maximum length for elements. I hope you're also validating that on the server somehow, because of course anyone can simply delete those before posting.

Remember, no one even has to go through your form to make a POST request to one of your endpoints (unless maybe you're using CSRF tokens, which you don't seem to be). Never assume that what you send to the user has any relationship to what they send back, and never validate on the front end.

Re:Show HN: Newsboard – A Hacker News Clone by robdelacruz on Wednesday August 26, 2020 @10:13PM (#24289514)
You're right, there's no validation on the server. Need to fix those.

As quick fix to get the site up and running again, I just trimmed off any overly long title or cat beyond a certain limit of chars.