News for hackers. Stuff that matters.

awirth

I have a 60L fish tank in my Tokyo apartment on around the 10th floor. It's sitting on stand that is not bolted to the wall. I have several friends with similar setups.

In the last 6 years there have been two or three earthquakes that caused enough water to slosh on to the floor.

Of those only the 2021 Fukushima earthquake caused any fish to slosh out - perhaps 10 medaka if I recall correctly. Luckily I was home and I was able to save all the fish, however there was one adult red cherry shrimp that didn't make it because I had trouble picking it up off the floor. I cleaned up the water with some paper towels and it didn't seem to cause any lasting damage.

I think if I had a 600 lb (270L?) tank or expensive fish though I would probably have a different perspective.

Re:An empty S3 bucket can make your AWS bill explode on Monday September 08, 2025 @03:30AM (#45165518)
It's been a year. Has it been disclosed what tool had this misconfiguration?
I also got a lot of value out of wanikani even without completing it.

I tried and failed several times to get started with Anki before having success with Wanikani. The key diffentiator for me was the learning step. Anki is great for remembering things you were taught or learned outside of it, but using Anki to learn new things is very much a learned skill that Wanikani holds your hand through.

I have N2 and am working on N1 now, and feel I still have a very long way to go before getting to CEFR C1. Now I only use Anki with the yomitan and takoboto integrations to quickly add any words I look up, which seems to be working well.

These tokens never expire, and there is no way for organization administrators to get them to expire (or revoke them, only the user can do that), and they are also excluded from some audit logs. This applies not just to gh cli, but also several other first party apps.

See this page for more details: https://docs.github.com/en/apps/using-github-apps/privileged...

After discussing our concerns about these tokens with our account team, we concluded the only reasonable way to enforce session lengths we're comfortable with on GitHub cloud is to require an IP allowlist with access through a VPN we control that requires SSO.

https://github.com/cli/cli/issues/5924 is a related open feature request

Re:Copilot broke audit logs, but Microsoft won't tell customers on Wednesday August 20, 2025 @09:07AM (#44961606)
What you're describing is a specific case of a confused deputy problem: https://en.wikipedia.org/wiki/Confused_deputy_problem

This is captured in the OWASP LLM Top 10 "LLM02:2025 Sensitive Information Disclosure" risk: https://genai.owasp.org/llmrisk/llm022025-sensitive-informat... although in some cases the "LLM06:2025 Excessive Agency" risk is also applicable.

I believe that some enterprise RAG solutions create a per user index to solve this problem when there are lots of complex ACLs involved. How vendors manage this problem is an important question to ask when analyzing RAG solutions.

At my current company at least we call this "権限混同" in Japanese - Literally "authorization confusion" which I think is a more fun name

Re:Voting by Fax from Antarctica on Friday November 11, 2022 @04:58AM (#33558850)
Now, I've done it by email! (although still using the convenience store for print/scan)

Unfortunately, https://www.sec.state.ma.us/ is geo-blocked for all of Japan (and several other countries AFAICT) "due to cybersecurity reasons", so I can no longer check/update my registration to vote without a VPN. I tried contacting different parts of the MA state government to get it unblocked several times over the past few years, but had no success. I have no idea what the other MA-voting residents of Japan do.

Last time I contacted the secretary of state's office via my state representative, they were kind enough to temporarily unblock my home IP address for one week though!

That's interesting, I've always reveled in the absurdity, but perhaps I'll re-read it with an eye to take each chapter in as a discrete unit. Thanks!
Cat's Cradle is one of my favorite books, but to be honest, I've never found it that funny - at least not in the sense that it makes me laugh much. What do you find so funny about it?
Re:Spring Core on JDK9 is vulnerable to remote code execution on Wednesday March 30, 2022 @09:25PM (#30862853)
If you can access the classloader that's pretty bad, it's likely people will find other gadgets.

It's insane to me though that class.* isn't completely disallowed. What is the legitimate use case for deserializing allowing web requests to call setters in the reflection API?

Also, agree it is impressive to me how much bad information I've seen.

I've been able to vote abroad in state/presidential elections from my last address in the US. I do it by email.

My only major hiccup is that the MA secretary of state's website www.sec.state.ma.us (which has the info about upcoming elections, the tool to check your registration, and the instructions for voting overseas) is blocked in Japan "for cybersecurity reasons". I've tried contacting the department of state and my state representative about this, but nothing's come of it.

The government of Cambridge on the other hand has been quite pleasant to deal with.

Re:But What's Up with That ¥? on Thursday November 11, 2021 @09:09PM (#29195592)
Now that I live in Japan, I've come to learn that for Japanese Windows users, seeing the ¥ symbol as a path separator is normal, it isn't a quirk or a bug. In fact, IIRC the copy machine in the closest convenience store shows a ¥ as the path separator when browsing a USB drive, even though I'm almost certain it's not running Windows.

A few years back, I wrote a CTF challenge around this quirk of SHIFT_JIS. It used a python MySQLdb connection set to SHIFT_JIS mode and a custom naïve mysql escape function. The trick was to use a yen symbol and have it get interpreted as an unescaped backslash, leading to a SQL injection. Also it was all over websockets just to be annoying.

There's a few nice writeups from it:

https://www.kernelpicnic.net/2016/03/06/BKPCTF-Wonderland-Go...

https://0day.work/boston-key-party-ctf-2016-writeups/

https://security.szurek.pl/en/boston-key-party-ctf-2016-good... (this one has the original challenge source)

I live in Japan and have the same problem with the Massachusetts department of state website (which contains voting information). I contacted my state representative (who does represent me, as I voted for him) and unfortunately he couldn't do much for me other than forward my inquiry.
Re:How I bypassed Cloudflare's SQL Injection filter on Friday September 18, 2020 @07:23PM (#24522839)
Years ago helped handle a support request from a man named "fread" who had a similar issue.
Re:Hacking with environment variables on Tuesday July 14, 2020 @02:30AM (#23829145)
Yes. This is why running without `env_reset` is considered inherently insecure and the typo fix wasn't considered a security fix by the sudo maintainers.

The list is still relevant to this discussion though as a nice "greatest hits" cheat-sheet of fun environment variables to play with here.

Re:Hacking with environment variables on Monday July 13, 2020 @11:23PM (#23828161)
See also the sudo bad environment variable list[1], which I recently found a 15 year old typo in.[2]

[1]: https://github.com/sudo-project/sudo/blob/master/plugins/sud... [2]: https://www.sudo.ws/repos/sudo/rev/bdf9c9e7f455

Re:Sat solver on top of regex matcher on Monday June 22, 2020 @10:49PM (#23609464)
Too late to edit, but out of curiosity I re-implemented this to use the PCRE JIT (in PHP) to see what kind of speedup it would provide: https://gist.github.com/allanlw/69df509519335b88db886d48503a...

Timings for fred.cnf on my machine:

python: 0m53.744s

PHP (no PCRE JIT): (hits backtrack limit in 1m15.994s)

PHP (PCRE JIT): 0m20.109s

Is there a BEP to make this work for native torrents too?

Also I don't understand the name "Web3torrent", is it intended to indicate a new version?

Re:Sat solver on top of regex matcher on Monday June 22, 2020 @10:30AM (#23600571)
Interesting, I wasn't aware of the history.

Personally I make the distinction, but I've noticed many many people do not, hence the question.

Re:Sat solver on top of regex matcher on Monday June 22, 2020 @02:30AM (#23597766)
This reduction is really cool. I love reductions like this.

Is there a general consensus to use "regular expression" to refer to the actual regular ones and "regex" to refer to the non-regular variants?

Re:Gocker: Docker implemented in 1.3k lines of Go on Thursday June 18, 2020 @10:24AM (#23563363)
Thanks! That's interesting!
Re:A Graphical Introduction to Lattices on Thursday June 18, 2020 @04:35AM (#23561052)
Note, this is about https://en.wikipedia.org/wiki/Lattice_(order) as in partially ordered sets, not https://en.wikipedia.org/wiki/Lattice_(group) as in geometry (and used by lattice cryptography)
Re:Gocker: Docker implemented in 1.3k lines of Go on Thursday June 18, 2020 @02:50AM (#23560459)
I assume you probably can't share the client, but can you share the general domain of the software?
Re:Using Lua as a Serialization Format on Thursday June 18, 2020 @01:50AM (#23560153)
Depends on the type of security researcher -- some profit from it!
Re:GitHub isn't fun anymore on Wednesday June 17, 2020 @01:02PM (#23553768)
>With GH now letting you create Organizations with private repositories

I thought this was always the point of Organizations..?

Re:Do Not Follow JavaScript Trends on Tuesday June 16, 2020 @01:59PM (#23542059)
Some days I miss using prototype.js and script.aculo.us
Re:New TLS certificate for .herokuapp.com hostnames on Monday June 15, 2020 @09:29AM (#23527077)
Is it possible to subscribe to a firehose of .COM NS record updates through one of those fancy things like dnsdb? If so, perhaps there's an opportunity here for exploiting that race condition en-masse for services that support direct NS-style delegation, like netlify.
Re:New TLS certificate for .herokuapp.com hostnames on Monday June 15, 2020 @09:26AM (#23527048)
You would think so, but it turns out that this ("subdomain takeovers") is a very common mis-configuration for a lot of *aaS services. Enough so that some bug bounty programs won't pay out much for it or at all because it happens so much and they don't consider the shared-suffix issue very important.

On the provider side though, requiring ownership verification (txt records, etc) introduces friction on the on-boarding process. It's likely any reasonably competent provider that doesn't implement verification has had a serious internal discussion about it and decided it's not worth thinning their funnel for.

I'd be curious to hear your observations. I did BA/MS at BU in CS (CAS of course) and found the classes often hit or miss, but the ones that were good were really good. That being said, I did have an interest in theoretical CS while many CS undergrads do not, which is what the department emphasizes.
Re:Ask HN: What would you do with unmetered 10gig? on Wednesday June 10, 2020 @07:09PM (#23483243)
From a security perspective, even assuming those operators already design to not trust the locations they're in, shipping servers to random end users seems like a bad idea.

Older »