Hacker News new | past | comments | ask | show | jobs | submit | more mgliwka's comments login

>This can lead to a replay attack where an attacker substitutes an archive with an earlier—unmodified—version of the archive. This would prevent APT from noticing new security updates which they could then exploit.

>To mitigate this problem, APT archives includes a timestamp after which all the files are considered stale[4].

Let's take a look at the repo spec then:

https://wiki.debian.org/DebianRepository/Format#Date.2C_Vali...

> The Valid-Until field may specify at which time the Release file should be considered expired by the client. Client behaviour on expired Release files is unspecified.

“Should”, “may”, and unspecified behaviour.


Well, of course the client behavior is under-specified -- sometimes the client is a human constructing a URL to download a .deb in a web browser over a corp-approved proxy, and then hand-installing the package with `deb -i`, bypassing all the security checks. Or sometimes there's a caching proxy (or three) between the client and the server. Or maybe IT has modified apt to only connect to repositories maintained by the IT department, and rejects sources from other domains.


Rails Turbolinks utilizes this technique for iOS: https://github.com/turbolinks/turbolinks-ios

Video explanation/demonstration: https://youtu.be/SWEts0rlezA



Nice, I just searched for .env and saw multiple people AWS secret keys



Can you disclose the contents of your email here for the wider public?


It’s pretty easy to acquire blocks larger than /64.


You can look it up by searching for "Diceware".


Thank you both :)


https://www.packer.io/ - allows you to create images for a lot of platforms.


At the first place I worked at: Zip Files. $customername-YYYYMMDD.zip. "Branches"? Easy. Just create a new folder. Merging? WinMerge is your friend :-D Deployment was sending a Zip File with DLLs to the customer. Obviously no build system, but built on the dev's local system.

Thank god I could convince the team to move to SVN.


It sure feels archaic!


If you can fix it in the morning, why bother at all? As long as it's not an common occurrence, it should be fine, right?


Because many times it's just about being proactive and getting things done ASAP because having your client find out first is bad.

I also prefer not starting my day with a fire. I'd rather do it off-hours.


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: