Better HN
topnewbestaskshowjobs
Log inSign up

awirth

425 karma · joined Dec 10, 2016 (9y ago) · 127 submissions

https://allanwirth.com/
Submissions

comment 11mo ago · link · parent

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.

comment 1y ago · link · parent

It's been a year. Has it been disclosed what tool had this misconfiguration?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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

comment 4y ago · link · parent

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!

comment 4y ago · link · parent

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!

comment 4y ago · link · parent

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?

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 5y ago · link · parent

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)

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

Years ago helped handle a support request from a man named "fread" who had a similar issue.

14.

Show HN: Don't Webpack Untrusted Code(gist.github.com ↗)

1 points · by awirth · 6y ago · discuss

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

Thanks! That's interesting!

comment 6y ago · link · parent

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)

comment 6y ago · link · parent

I assume you probably can't share the client, but can you share the general domain of the software?

comment 6y ago · link · parent

Depends on the type of security researcher -- some profit from it!

comment 6y ago · link · parent

>With GH now letting you create Organizations with private repositories

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

comment 6y ago · link · parent

Some days I miss using prototype.js and script.aculo.us

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.
12345