Earlier quoted context omitted.
No. Create a new user namespace and you have CAP_NET_RAW within your shiny new namespace.
But you need capabilities to create that new user namespace (CAP_SYS_ADMIN, I think)
Exploiting the Linux kernel via packet sockets
31–40 of 41 posts
Re: Exploiting the Linux kernel via packet sockets
#32Bottom line - locally exploitable vulnerability in the linux kernel, in case you have the CAP_NET_RAW capability which never really happens. Not a real security threat for your standard linux distro. On the other hand, this is a great technical write-up that describes thoroughly the internals of some of the linux kernel subsystems. Probably the best documentation you can find for some subsystems. Also shows how they…
No. Create a new user namespace and you have CAP_NET_RAW within your shiny new namespace.
Re: Exploiting the Linux kernel via packet sockets
#33Re: Exploiting the Linux kernel via packet sockets
#34I wish I was smart enough for the article. 8 years of web dev doesn't make the cut unfortunately.
yeah webapps in general are the most simple aspect of programming that you can get paid to do. Not knocking it though
This does not make webapps necessarily simple: complex UI logic, asynchronous everything often constant two-way communication with a server, maybe with conflict resolution, etc.
Re: Exploiting the Linux kernel via packet sockets
#35Earlier quoted context omitted.
I personally find embedded programming easier than web development...
But isn't embedded programming more complex? as in, it requires a well founded understanding of CS concepts, as well as requires advanced ability in programming and math.
(source: am kernel/firmware programmer)
Re: Exploiting the Linux kernel via packet sockets
#36Earlier quoted context omitted.
But isn't embedded programming more complex? as in, it requires a well founded understanding of CS concepts, as well as requires advanced ability in programming and math.
I imagine to an embedded developer, the web just looks like madness because there's no consistency. Parachute into a web app you've never seen before, one that might not have been developed well. Your task is to make a button that's currently green and make it blue instead. What's the right file(s) to edit? How many layers of caching do you need to disable to see that your change actually worked? Do you need to resta…
You sir win the Internet for today.
Besides a much steeper learning curve to C, it is much easier. If you put the GPIO pull-up to high, the LED turns on. If you put it to low, the LED turns off. It is much simpler in that there isn't much abstraction really at all.
Re: Exploiting the Linux kernel via packet sockets
#37Earlier quoted context omitted.
I personally find embedded programming easier than web development...
But isn't embedded programming more complex? as in, it requires a well founded understanding of CS concepts, as well as requires advanced ability in programming and math.
Instead of spending ~100 for a MyQ smart garage opener I spent less than 20 for an Adafruit Huzzah and some sensors. Then I taught myself to program it and boom. It isn't hard if you're dedicated and have a project to learn with a clear bend goal.
Re: Exploiting the Linux kernel via packet sockets
#38Bottom line - locally exploitable vulnerability in the linux kernel, in case you have the CAP_NET_RAW capability which never really happens. Not a real security threat for your standard linux distro. On the other hand, this is a great technical write-up that describes thoroughly the internals of some of the linux kernel subsystems. Probably the best documentation you can find for some subsystems. Also shows how they…
No. Create a new user namespace and you have CAP_NET_RAW within your shiny new namespace.
Archlinux has user namespaces disabled, docker does not use them by default and does not allow them inside containers by default, on Ubuntu I make sure to disable kernel.unprivileged_userns_clone on all the servers I deploy to, etc.
Re: Exploiting the Linux kernel via packet sockets
#39Earlier quoted context omitted.
No, Docker usually drops CAP_NET_RAW within the container. But you can change that and other container technologies definitely keep CAP_NET_RAW within the container.
Not true. CAP_NET_RAW is on by default: https://github.com/moby/moby/blob/master/oci/defaults_linux.... Otherwise no one could ping from a container.
Re: Exploiting the Linux kernel via packet sockets
#40So are there any Android binaries have CAP_NET_RAW so I can root the device?