what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

eInstruction Workspace Sudo Misconfiguration

eInstruction Workspace Sudo Misconfiguration
Posted May 14, 2014
Authored by Martin von Gagern

eInstruction Workspace uses sudo in an insecure manner that allows for root level privilege escalation.

tags | advisory, root
SHA-256 | ea967f9ad83bf0e22c8940b19015e0016abf72dd45fb095cd48e3e8f29765f83

eInstruction Workspace Sudo Misconfiguration

Change Mirror Download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

eInstruction sells, among others, electronic whiteboards. They also
provide Linux software for these, including a user land driver of
sorts called Workspace. If the installation of that software succeeds,
it will change /etc/sudoers to add the following two lines:

ALL ALL=(ALL) NOPASSWD :
/opt/eInstruction/DeviceManager/jre/bin/java -Djava.library.path\=.
-classpath ./dm.jar\:./*\:./axis2-1.5/* einstruction.dm.ui.Main
Defaults env_keep += "DISPLAY XAUTHORITY XAUTHLOCALHOSTNAME"

The problem here is that the first command allows anyone to run pretty
much anything as root: simply place a dm.jar in the current directory
before executing the named command, and the named class inside it will
get executed. The intention is of course to run the shipped jar with
full privileges, but the command does not check the current working
directory or use an absolute path.

I've informed developers of this issue on 2013-12-07, in their problem
report #51647. I included a statement of my plans to disclose this
issue, but unfortunately forgot to actually do so. 2014-04-22 got the
first response: "I will pass this information to along to our
developers". Apparently no progress since then.

I guess a manual fix would be replacing all relative paths by absolute
ones. Not sure how secure the java code itself is, but the sudo
problem should be avoidable that way.

Greetings,
Martin von Gagern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlNzwEIACgkQRhp6o4m9dFu7wgCfePQEKvizjypyiiDc7/xb3P9A
WhwAnA1qQWs9W6fwo/grjTzgbEq5wpA1
=jpCp
-----END PGP SIGNATURE-----


Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close