HNHacker News
TopNewBestAskShowJobs

PowerBar

77 karma · joined August 7, 2020

submissionscomments
PowerBar··on A tool for recovering passwords from pixelized screenshots
> Besides deleting letters under it could affect layouts.

Which is in and of itself a security risk. Not only can the length of the redaction give an estimate on the length of the password, but for variable width fonts, could even rule out many passwords using pixel measurements between the text on either side.

PowerBar··on I accidentally built a spying app
No, but if I were a bat designer, I would be hesitant to sell a baseball bat full of nails under the guise of "meat tenderizer". Even though it may actual work as intended (tenderizing steaks), the way it is most likely to actually be used the majority of the time so obviously overshadows it that the product probably shouldn't be created, let alone sold.
PowerBar··on Getting Started with Ansible
As a long time puppet user, I started forcing myself to use ansible for my homelab so I can learn it's intricacies and limitations.

Recently I had a use-case where I wanted to re-use some data from a defined variable (list of objects) in a second module, but the format had to be different. In python I would have done something like new_var=[{a:i['a'], b:i['b']} for i in old_var], but apparently that is impossible in ansible. The best solution I was able to find after lots of searching was to to pass new_var to a jinja2 template which would render new_var as text, then run that through a json interpreter and set that as new_var. Absolutely rediculous.

It astounds me that a tool BUILT on python lacks any semblance of python's biggest feature, list comprehension.

PowerBar··on Stolen irreplaceable books found under floor of Romanian house
> A female bear is startled and charges towards the people

Which is why the #1 preventative step taught in Canada (where we also have large bears and moose) is to be noisy. If the Bear, Moose, Deer, etc can hear you from a decent distance, they'll get well out of your way before you even know they're there.

I've been camping since before I can remember (literally) and the only "protection" we bring is mace and bear bangers (basically tiny fireworks without the lightshow). We've come across bears a number of times, but never had to use either. Just talk loudly and make some noise, and they just wander away.

I think the reason so many attacks happen to hunters is because they're trying to be stealthy and end up sneaking up on them (whether on purpose or or not), which is when they are dangerous.

PowerBar··on Sweden bans public events of more than eight people
> I think we can now conclude that covid19 behaves seasonally, just like other respiratory viruses.

I don't know how you can possibly establish a seasonal trend before we've even observed it for a single seasonal rotation.

https://xkcd.com/605/

PowerBar··on “Overpaid Executive Tax” in SF hits firms that pay CEOs 100X more than workers
It's definitely not fair to the employees of company B (assuming the jobs are equivalent).
PowerBar··on IPv6 Is a Nightmare
In theory. I very much want IPv6 to take over, but a firewall does not provide the same level of security as a NAT when a bug is found.

If a bug is found in a non-NAT firewall that prevents it from blocking a packet for some reason, you have a routable address from the outside that you can send packets to. If a bug is found in a NAT firewall that prevents it from blocking a packet, it's very difficult to tell the router which internal address to route the packet to since the IP header only holds 1 "TO" address and by necessity, that's the public address of the NAT firewall.

There are of course some edge cases (double-headers, being on the same L2 network as the firewall, etc), but for most cases, the fact that the internal network is on IP addresses that won't route to their public interface (the NAT firewall) is in and of itself a layer of protection.

Personally, I think this trade-off is worth it in the long run, but it's simply not correct to claim they are equivalent when router firmware bugs are still discovered on a regular basis and consumer network equipment rarely gets security updates (and it's even rarer for consumers to install them).

PowerBar··on IPv6 Is a Nightmare
That would only work, at best, in 1 direction. If Alice has IPv6 and Bob has IPv4, Alice can send Bob a packet to either 1.2.3.4 or ::01:02:03:04, but if Alice's IPv6 number isn't in the IPv4 range (ex: ::10:11:12:13:14), then her IPv6 number won't have a corresponding IPv4 number that she can put in the IPv4 IP header (because the IPv4 header only allocates enough bytes to exactly fit 1 IPv4 header in the from field and 1 IPv4 header in the to field).

This means she'll have to either send an IPv6 header or an IPv4 header with a false or blank IPv4 from address. If she sends an IPv6 packet, Bob's IPv4 network stack won't be able to understand it and drop the packet. If she sends an IPv4 packet with a blank or false IPv4 from address, Bob will receive the packet, but won't be able to send a response.

PowerBar··on Don't Use VPN Services (2016)
Congratulations, you're now being tracked by the government of whichever country your VPN is proxy'ing your data to.

And that government also certainly has much less legal restrictions on tracking you since you're probably not their citizen. Unless you VPN to a node in your own country, in which case, they're just tracking you at a different exit point.

PowerBar··on 'My team will be able to program circles around everyone else' (2002)
I've been there. I an built entire deployment/change-management system in very small IT teams (1 other person with different skills from mine). We eventually got the go-ahead to grow the team, including more admins with my skill set. At that point, I had written pretty much the entire thing while the other admin had been focusing on tasks related to their skills.

Whenever a request came in for something regarding the system, I would have to force myself to sit down with one of the other admins and walk them through making the change to close the ticket. It took 3-4 times as long to do the work that way, but after a few weeks, I could start assigning some tickets to them directly and eventually the time savings exceeded the expenditure and I could go back to big-picture planning.

It's a hard lesson to learn the first time, but worth the pain of going through.

PowerBar··on Cracking the knuckles is probably harmless
After I broke my ankle (crushed between trees), they had to re-attach part of one of the bones (the ball part that goes into the socket) with 3 temporary pins. Once the pins were removed and I started walking again (after lots of physio), my ankle would swell up to the point where it would literally not move without cracking it first. Cracking would also instantly relieve 90% of the pressure and pain in the ankle for at least an hour or two, it was marvellous.

I've regained all of the extension motion and probably 70% of my retraction motion (moving toes towards knee), but only about 30% of the muscle strength. Unfortunately it still swells up after long periods of standing or hiking but I'm rarely able to crack it anymore, and really wish I could on those bad days.

PowerBar··on Dockerfile Security Best Practices
>> Do not store secrets in environment variables

> Yes, definitely don't put secrets in the Dockerfile itself. I'm curious if there are reasons not to use a .env file though?

Environment variables are a terrible place to store secrets, regardless of whether you're using docker.

Environment variable values get dumped all over the place. /proc/*/environ, docker inspect, /var/log/..., core dumps, error messages, info pages (phpinfo), etc. Also, unlike file handles and secrets services (hashicorp vault, etc), every child process inherits all of its parents' environment variables, greatly increasing the attack surface.

PowerBar··on Dockerfile Security Best Practices
It astounds me how many developers don't realize just how many places environment variables end up, even on a properly functioning server.

common info pages (ex: phpinfo), core dumps, debug errors and logs are notorious for containing them. And those aren't even counting the ways a malicious actor can persuade a program to provide them.

PowerBar··on A novel polymer should make 3D printing more effective
Every time I print something and see the bits of extra plastic (nozzle cleaning, supports, the odd failure, etc), I feel a little guilty until I remember how much plastic would have been in the packaging alone had I ordered the part online or bought it in the store. Pretty much every time I order something small from Amazon or Ebay (the only really usable online retailers in western Canada), it almost always comes in a bubble-wrap-lined envelope that is essentially impossible to recycle.
PowerBar··on How does a gas pump know to shut itself off? (1981)
Only if your vehicle requires hit. Premium gas is rated for higher compression (generally turbo or supercharged engines). If your owner's manual doesn't recommend a particular octane, just get regular.
PowerBar··on If doctors were interviewed like software developers
In an ideal world, yes, at least to a certain extent. How many times has the security of entire phones been compromised because of an app?

Obviously software written for use in medical devices and banking systems should be held to a higher standard, but the same can be said for other licensed professions. A plumber installing a fire suppression system in a 50 story high-rise would similarly have their work held to a higher standard than someone setting up a rain barrel for their garden.

Personally I find the quality and vetting process of software designed to be installed on the same device that most people use to manage their online banking and carry on their most intimate conversations (often using said software) to be so low as to be considered criminally negligent by the standards of any other respectably industry.

PowerBar··on Shapez.io: open-source base building game inspired by Factorio
It's an upgrade you earn in a later level.
PowerBar··on Why is unauthenticated encryption insecure?
That's one of the other popular strategies, but relies on both devices have accurate clocks. With computers and servers (where the strategy is used quite a bit, sometimes in combination with challenge-response), it's quite easy. If you're working with something non-networked or battery powered like a garage door opener, clock drift becomes a serious issue.
PowerBar··on foo@bar.com
Why would your A records change depending on context? Do you have separate networks where "server.localdomain" has different IPs? The typical way to solve that is to use different sub-domains for each one.

For example if you have a home network and a testing network, you could have one on home.example.com and the other at lab.example.com, in which case your servers would be server.home.example.com and server.lab.example.com. If you use DHCP on those networks, you simply set the domain and search-domain options and you can just enter "server/" on the devices that moves between them.

You only need to register example.com with a registrar, then you can use whatever subdomains you want wherever you want.

PowerBar··on Identifying Airtel middleboxes that censor HTTPS traffic
They were alternative ways to prevent a MITM, but they both have solutions solved by existing TLS.
PowerBar··on Free and Open Source Product Information Management(PIM) System
While I with rodolphoarruda that you need a page that sells the product to the user, I applaud the existence of this page.

As the person often tasked with evaluating, approving and deploying software, a page like the one linked to in this article can turn a multi-day review process (or weeks if I have to keep asking their sales people to relay questions to the technical team I'm not allowed to talk to and then relay back half the information they think they understood from said technical team) into a couple of hours.

PowerBar··on Identifying Airtel middleboxes that censor HTTPS traffic
That would still rely on

A) some kind of secret that only the server knows that the client can verify in order to ensure it's not trading nonces with the MITM.

B) A way for the client to ensure that the nonce isn't being passed through a second tcpcrypt session between the MITM and the server with the connection being in cleartext between the 2 tcpcrypt streams.

Currently the best supported method of implementing both A and B is certificates, which means you may as well use TLS.

PowerBar··on Ask HN: What are good life skills for people to learn?
Critical thinking and evaluating evidence.
PowerBar··on foo@bar.com
You don't need to disclose anything on the public DNS. Just register the domain, then use it internally.

For example, if you buy "example.com", just set your public DNS (assuming your registrar provides one) to resolv it to 127.0.0.1, then add your internal hostnames and IP addresses to your internal DNS. If you do it that way, "my-server.example.com" will simply fail to resolve unless you're on your internal network and you don't have to worry about any issues with using the reserved *.internal domain.

PowerBar··on foo@bar.com
Which is one of the reasons I always insist our dev and prod teams use FQDNs (under domains the company owns) in all of their configurations.

In more dynamic environments, the config may have the domain as its own setting and each service as just the hostname, but the software must combine them before use, or better yet combine them in the config if variable expansion is possible in the config language they are using (ex: db_server="db-01.${domain}" with domain being defined near the top).

PowerBar··on Why is unauthenticated encryption insecure?
And that doesn't even touch on replay attacks.

If you have a door lock that accepts "lock", "unlock" and "report status", a MITM attacker only needs to capture the encrypted & signed "unlock" command, then replay it later.

Many workarounds were developed to mitigate this such as random values, incrementing values and timestamps, but most were found insecure. Challenge-response systems with a short validity period are one of the better systems in use, but require bi-directional communication which can make some products (ex: garage door openers) more expensive.

PowerBar··on Reddit – “Windows 10 prompted me to register to vote”
Canada is kind of in a middle ground. You need to register to vote, but when you file your taxes there's a checkbox for "Allow Revenue Canada to share your information with Elections Canada" which basically auto-registers you when you file.
PowerBar··on Reddit – “Windows 10 prompted me to register to vote”
https://www.office.com/

I know it's not perfect yet, but the better and better it gets, the fewer reasons Microsoft is giving people to stick with Windows. I wouldn't be surprised if Microsoft stopped selling the local version in a few years.

PowerBar··on 91% of plastic isn't recycled (2018)
Parts of lower mainland BC (Canada) are the same. For example, I can recycle glass in Vancouver, but Surrey stopped accepting it years ago because they changed recycling companies and the new one considers it a safety hazard for their works. Conversely, Surrey will recycle plastic bags, but in Vancouver you have to drop them off at the grocery store (only a few stores do this).
PowerBar··on Security by obscurity is underrated
Honeypots are fun, but be VERY careful how you deploy them. Ideally they are on a completely separate network on the WAN side of a second firewall. The last thing you want is for someone to find an exploit in your honeypot and use that to gain access to your network.
← PreviousPage 2 of 3Next →