I got to write some exploits for some recently, very fun bug class to exploit.
63 karma · joined April 4, 2017
I got to write some exploits for some recently, very fun bug class to exploit.
Are there any details on that?
The problem is you can not hijack (meaning command exec right?) a root shell running under your account with this unless there is an approach that hasn't been mentioned yet. You can read character input, stopping the program from receiving input while you are doing so, of a process your user account directly started. I investigated the other ways and he hasn't given a viable one beyond running stuff directly in shell of the target session (TIOCSTI doesn't work if you target a different pty) or using ptrace.
All of these apply to other programs as even though they set root permissions on their pty as you can influence their parent. You need to chown both if you want to stop issues, but that'll probably break stuff. To be clear his whole point is that systemd is less secure compared to sudo etc but is using something that applies to everything to try and show that, involving using pocs that didn't even show the issues he was claiming, which is disingenuous.
I reproduced this targeting sudo (just `cat` the parent tty), in fact able to capture my password as I type it in, and capture commands as they are being typed in. Surprised it was not mentioned that it breaks the terminal while you run it, no characters get sent to the program.
Edit: Here is a POC https://gist.github.com/bahorn/198987f55611f2011a91a5af09e7c... so you can see that this applies to sudo as well.
If you look at the implementation of TIOCSTI [4], 99% sure this is what the new PoC is doing, you can see why you can't do this across ttys. This goes back ages, even into some 2.6 kernels it seems before I got bored going back kernel versions.
I went and tested all this on a Ubuntu 22.04 box, not possible unless there is a new trick to hijack ttys. I tried the TIOCLINUX across ttys physically at the machine and that didn't work either.
[1] https://blog.nelhage.com/2014/08/new-reptyr-feature-tty-stea... [2] https://twitter.com/hackerfantastic/status/17860809689581612... [3] https://github.com/jwilk/ttyjack [4] https://elixir.bootlin.com/linux/latest/source/drivers/tty/t...
Also seems a bit absurd to try and pretend there is a security boundary between processes started by the same user. You could already do PATH trickery here, a time honoured tradition.
Techniques I'm seeing in the Pappas et al. paper mentioned in the history section of [1] to do more complex queries seems pretty cool, and I imagine the performance has been improved a bit in more recent work.
[1] https://en.wikipedia.org/wiki/Searchable_symmetric_encryptio...
Probably not a reasonable choice for any real usage though.
Higher value targets tend to use iOS more often so their adversaries have more interest in attacking it, and the targets are people who are more likely to come forward if they suspect being attacked. And given we've heard more of iOS attacks, people likely to be targeted are more on the look out for them, as a bit of a self fulfilling prophecy.
Android is considered a bit of a harder target for these types of exploits (playstore malware doesn't count here), though at this level it's not the most meaningful distinction. Fragmentation does make it harder to use these sorts of things in the android world, as it's a bit harder to do QA against all the possible target devices and probably requires knowing exact model numbers to confirm support before being able to launch an attack. The exploits do definitely exist however, at least for flagship phones.
Another thing to consider is that maybe people have better payloads on android, as you can't quite get away with running "Payload2" on the device from a temp directory when process viewers are available. I'm somewhat unsure that'd actually be a meaningful reason for lack of discovery though, especially when the discovery is mostly done by journalists forwarding suspicious links to citizenlab.
Find the idea interesting, but I'm curious how resistant it is to attackers who know you are using it / how you'd design things to make backdooring in a way that isn't noticeable hard.
Events are more just workshops / hanging out, with projects being more of a secondary thing.
[1] https://web.archive.org/web/20210224203331/https://github.co...
I get why the signal team wanted something to use HTTPS, even networks with completely insane firewalls accept it and they get to reuse existing domain fronting code, but existing tools continues to viable in Iran and would have made much more sense in the circumstances.
[1] https://blog.torproject.org/learning-more-about-gfws-active-...
[2] https://github.com/Yawning/obfs4/blob/master/doc/obfs4-spec....
* $119 for 4GB of RAM
* $149 for 8GB of RAM
But the early version apparently is only the 8GB variant.
Regarding the value of RGB, honestly one of the cooler uses which the projects been enabling is showing things like system status on your devices. And beyond that, getting a cool pattern or mode implemented is just a fun weekend project.
Just go to whatever the local meeting point early enough and you'll get a ride. Tend to leave by 10-11am IIRC. Try to get the front seat as they'll overpack the cars to an extreme.
I only did the main route and didn't head down to the Wakhan valley, where I gather you need to find people to travel with to cover the costs.
Random tips / things to be aware of:
* Breakdowns seems to be pretty normal. They do know how to fix their cars though so you shouldn't panic. Had this happen twice on the Khrough -> Mughrab section.
* There are some lovely villages on the road to Roshtqala. I did a homestay in Tusen and the scenery around there is amazing. The place marked as "Shokhdara Bus Station" in Khrough on OSM is where you go to get transport here.
* Public transport between closer villages and around Khrough is pretty reliable but it doesn't run on Sundays. Bit of an adventure to get though.
* ATMs exist in Khrough and do accept Visa, but none as far as I'm aware in Mughrab (And the banks weren't open in Mughrab while I was there due to the time of year)
* No accommodation in the Pamirs has persistent internet connectivity, even if they advertise it. It's all 3G/4G connections they leave on only for a few hours a day (if that). This becomes an issue when you need to figure out where to stay in the next place on your route.
* The GBAO permit is cheaper if you do it in Dushanbe and don't get it with your evisa.
* Caravanistan and its forum has so much useful information. Planned my whole trip around the site.
Surprisingly easy to travel as a lone backpacker nowadays as you can arrange transport on the day on all the major stops of the main route. (Dushanbe -> Khrough -> Murghab -> Osh). Cost of the main route was something like $70 in shared taxi costs.