exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

mapr Information Disclosure

mapr Information Disclosure
Posted Mar 31, 2017
Authored by Mark Felder

mapr suffers from an information disclosure vulnerability.

tags | exploit, info disclosure
SHA-256 | 72154e7425f8731073fc55262d90eaa471479bcf62a2e3abdbd88d8525430209

mapr Information Disclosure

Change Mirror Download
Hello,

The mapr web frontend component creates an information disclosure
vulnerability. During the setup of mapr the configure.sh script calls a
function ConfigureWSRole:

function ConfigureWSRole() {
if [ $clientOnly -eq 0 -a $dontChangeSecurityPermissionsOn -eq 0 ];
then
ConfigureRunUserForWS
fi

This calls ConfigureRunUserForWS from configure-common.sh:

function ConfigureRunUserForWS() {
local val=`getent group shadow 2>/dev/null`
if [ "$?" != "0" -o "$val" = "" ]; then
# Create a group named shadow
groupadd shadow >> $logFile 2>&1
fi
# Add CURR_USER to the group wheel
if [ -f /etc/SuSE-release ]; then
# Add CURR_USER to the group wheel for SUSE
usermod -A shadow $MAPR_USER >> $logFile 2>&1
STATUS=$?
#
# The '-A' option has been removed from SuSE 12
#
if [ $STATUS -ne 0 ]; then
usermod -a -G shadow $MAPR_USER >> $logFile 2>&1
fi
else
usermod -a -G $MAPR_GROUP,shadow $MAPR_USER >> $logFile 2>&1
fi
# Change group-owner of /etc/shadow
chgrp shadow /etc/shadow >> $logFile 2>&1
# Allow read permissions for user shadow
chmod ug+r /etc/shadow >> $logFile 2>&1
}

This results in a shadow file that is now readable to the application:

# ls -la /etc/shadow
-r--r-----. 1 root shadow 657 Mar 30 16:09 /etc/shadow
# grep shadow /etc/group
shadow:x:1000:mapr

The option to disable this codepath, -no-auto-permission-update, is not
recommended by Mapr and comes with a warning in the script as it will
break the webserver's ability to authenticate the local mapr user, which
is used to administer the cluster:

echo " -no-auto-permission-update - do not update the system
security permissions automatically"
echo " Warn: Features like WebServer
might not work properly"
echo " default: disabled"

The website docs[1] casually describe the option, "Pass this option to
prevent MapR from silently altering permissions in /etc/shadow."

These files are part of the mapr-core-internal package:

# rpm -fq /opt/mapr/server/configure.sh
mapr-core-internal-5.2.0.39122.GA-1.x86_64
# rpm -fq /opt/mapr/server/configure-common.sh
mapr-core-internal-5.2.0.39122.GA-1.x86_64


Thanks

[1] http://maprdocs.mapr.com/home/ReferenceGuide/configure.sh.html

--
Mark Felder
feld@feld.me


Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    18 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    18 Files
  • 22
    May 22nd
    7 Files
  • 23
    May 23rd
    111 Files
  • 24
    May 24th
    27 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    6 Files
  • 28
    May 28th
    12 Files
  • 29
    May 29th
    31 Files
  • 30
    May 30th
    22 Files
  • 31
    May 31st
    18 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