News for hackers. Stuff that matters.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by politician on Friday January 05, 2024 @08:39PM (#38887458)
Security people: What are the odds this becomes part of the command and control chain for a botnet in the next 30 days?
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by Retr0id on Friday January 05, 2024 @09:33PM (#38887770)
Botnet maybe not, but as a place to store phished creds etc., quite likely.

Services like requestbin have had a lot of trouble with this sort of thing, historically https://web.archive.org/web/20190711192140/https://github.co...

> We have discontinued the publicly hosted version of RequestBin due to ongoing abuse that made it very difficult to keep the site up reliably. Please see instructions below for setting up your own self-hosted instance.

(note, that message is old, requestbin did live on despite it, iiuc)

Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by mlhpdx on Friday January 05, 2024 @08:42PM (#38887477)
So rate limiting on GET, then, too? How would you prevent abuse while keeping it simple?
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by axelthegerman on Friday January 05, 2024 @11:09PM (#38888311)
That's the problem, we can't have nice things on the internet anymore.

Either you could try adding limitations that would make it less appealing to shady folks, e.g. amount of storage in the value.

Or most likely adding user accounts and depending on how far you need to go captchas or offload it by e.g. using GitHub oauth (and coupling yourself and your users to a 3P).

Neither of them are great. While the tool is fairly unpopular there probably isn't an issue.

Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by MrRowTheBoat on Saturday January 06, 2024 @12:11AM (#38888622)
Unfortunately, you spoke too soon, exactly what you said has happened lol.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by ivancho on Sunday January 07, 2024 @10:22AM (#38901923)
I mean, there's a whole industry dedicated to preventing abuse of computing resources exposed to the internet. You basically opened your MongoDB instance to the world - you are lucky they haven't already stored anything horribly illegal in there.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by MrRowTheBoat on Sunday January 07, 2024 @02:29PM (#38904335)
Anything is certainly possible on the internet, if or when that happens I'll intervene.

Implementing authentication and or authorization is not beyond my ability, and could have been setup, but it would have severely tarnished ease of access to the platform, and hindered the amount of people who already tried out the service.

Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by ivancho on Wednesday January 10, 2024 @01:12AM (#38936834)
The hubris of software engineers never ceases to amaze me. I'm not trying to scare you here, I am just gently suggesting that you might not have the capacity to provide this as a public service. Keep using it for your projects if it works for you, maybe wrap it in a docker container for other people to deploy on their own if they so want.

Side note, I just tested a curl command with

  -d '{"key": {"$regex": ".*"}, "value": "..."}'
and it went through, updating the already existing first key in the collection, so you're not even sanitizing your inputs - there's likely some Mongo lookup code that will enumerate the existing collections, or overwrite someone else's data, or possibly read all of it, I am not going to continue with the probing (are you sanitizing the api key?). You can either assume good faith from all your users, or open the API to the internet, but definitely not both.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by MrRowTheBoat on Friday January 05, 2024 @08:49PM (#38887527)
O0f. I could try putting up a no robots sign, maybe that will stop them
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by RockRobotRock on Friday January 05, 2024 @09:13PM (#38887667)
So what? I could C2 a botnet right now with base64'ed hacker news comments. You don't need a captcha to register an account.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by Retr0id on Friday January 05, 2024 @09:31PM (#38887756)
HN has a system for reporting and responding to abuse.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by RockRobotRock on Friday January 05, 2024 @11:30PM (#38888436)
Yeah I feel you I'm just trying to point out the fact that there are a lot of ways to read and write arbitrary data pseudo-anonymously.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by Retr0id on Saturday January 06, 2024 @06:52AM (#38890672)
As a one-off there are many ways, but if you want to scale things up then you run out of options pretty fast. OP potentially just made themselves the new lowest hanging fruit.
Re:Show HN: Hashmap.me – Simple HTTP-Based Data Storage and ... by RockRobotRock on Saturday January 06, 2024 @10:07PM (#38898032)
Good point.