HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Secuirty issues with LD_LIBRARY_PATH & SHLIB_PATH
Operating System - HP-UX
1829721
Members
1887
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2002 10:43 PM
02-03-2002 10:43 PM
Secuirty issues with LD_LIBRARY_PATH & SHLIB_PATH
Hi All,
I found some libraries on IA machines have LD_LIBRARY_PATH & SHLIB_PATH enabled.
Does this give rise to any security problems and can any one misuse this?
=================================
# chatr libIDMawrt.so.1
libIDMawrt.so.1:
32-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third Not Defined
shared vtable support disabled
segments:
index type address flags size
4 text 04000000 z---c D (default)
5 data 40000000 ---m- D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
===================================
Thanks
Jayesh
I found some libraries on IA machines have LD_LIBRARY_PATH & SHLIB_PATH enabled.
Does this give rise to any security problems and can any one misuse this?
=================================
# chatr libIDMawrt.so.1
libIDMawrt.so.1:
32-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third Not Defined
shared vtable support disabled
segments:
index type address flags size
4 text 04000000 z---c D (default)
5 data 40000000 ---m- D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
===================================
Thanks
Jayesh
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 02:53 AM
02-04-2002 02:53 AM
Re: Secuirty issues with LD_LIBRARY_PATH & SHLIB_PATH
Hello,
in general: yes there are risks with the use of LD_LIBRARAY_PATH and SHLIB_PATH.
In fact to use this, deep knowledge of the application is required.
I.e. if an application uses a shared library that gets a secret parameter, you can fake the libpath, let the program jump to an own libraray and evaluate the parameter.
There are special options to "ld", to create executables to prevent faking shared libs. I.e. any software with such features should create these critical routines with a static link option or a dynamic lib section that uses fixed search path settings.
See "man dld.sl" and "man ld" for additional info.
In addition, depending on the OS, additional rules may apply, if the program is set suid. See "man ld.so.1" on Solaris i.e.
Volker
in general: yes there are risks with the use of LD_LIBRARAY_PATH and SHLIB_PATH.
In fact to use this, deep knowledge of the application is required.
I.e. if an application uses a shared library that gets a secret parameter, you can fake the libpath, let the program jump to an own libraray and evaluate the parameter.
There are special options to "ld", to create executables to prevent faking shared libs. I.e. any software with such features should create these critical routines with a static link option or a dynamic lib section that uses fixed search path settings.
See "man dld.sl" and "man ld" for additional info.
In addition, depending on the OS, additional rules may apply, if the program is set suid. See "man ld.so.1" on Solaris i.e.
Volker
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP