News for hackers. Stuff that matters.
Re:Show HN: Simple Blogging Platform – QuickPublisher by eitland on Sunday August 16, 2020 @08:21AM (#24177195)
> By default, your blog gets published on a .quickpublisher.online sub domain.

Please be careful: don't let users publish on your domain or even a subdomain of your business domain. If they post something someone don't like you risk that your email and statis page and everything goes down because someone asks your DNS provider to take you offline.

Just buy another domain: quickpublisher.<whatever> and use that for user generated content.

Re:Show HN: Simple Blogging Platform – QuickPublisher by user5994461 on Sunday August 16, 2020 @12:01PM (#24178835)
Lol that's the least of the concerns.

If you allow customers to publish on subdomain, let's say example.quickpublisher.online, the customer site will receive all cookies from the top domain quickpublisher.online (read: user sessions), this allows to trivially steal user accounts from other customers visiting the site, then take over their resources or credit cards (assuming there is some payments attached to the account).

TLDR; If you're a customer, go shutdown your account quick before it's stolen. This product is a security disaster that should never have been shipped like that.

Re:Show HN: Simple Blogging Platform – QuickPublisher by estacado on Sunday August 16, 2020 @12:29PM (#24179078)
Wordpress.com does this. Are those sites at risk too?
Re:Show HN: Simple Blogging Platform – QuickPublisher by user5994461 on Sunday August 16, 2020 @12:53PM (#24179269)
Good question!

You will see that you are logged in as yourself if you access any wordpress.com website, your session is shared with all blogs. It allows you to post comments as yourself without captcha for example.

Historically wordpress controls the entire platform. It notably doesn't allow users to post raw HTML or any javascript, or load any wordpress plugins. There is only a basic text editor to write blog articles. As a customer you wouldn't be able to intercept cookies because you don't have any control on your site (you can't even load javascript for google or amazon ads which is super annoying).

They've added some plugin support in the past year and few other things, so this might have opened some unnoticed loopholes. Notwithstanding any novelty, wordpress is locked really tight and designed with this in mind, it's safe.

Re:Show HN: Simple Blogging Platform – QuickPublisher by rotimi_je_suis on Sunday August 16, 2020 @12:33PM (#24179123)
Here I use wildcards. The subdomains are not created on my domain.
Re:Show HN: Simple Blogging Platform – QuickPublisher by rotimi_je_suis on Sunday August 16, 2020 @08:24AM (#24177207)
Thanks for the advice. I'll be sure to implement it
Re:Show HN: Simple Blogging Platform – QuickPublisher by neya on Sunday August 16, 2020 @11:19AM (#24178480)
Consider using something like this:

https://github.com/dsignr/disallowed-usernames

Disclaimer: I'm the author

Re:Show HN: Simple Blogging Platform – QuickPublisher by rotimi_je_suis on Sunday August 16, 2020 @11:21AM (#24178492)
You're a life saver! Thank you! This makes it easier to implement in my platform.