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

DISA SRR Root Compromise

DISA SRR Root Compromise
Posted Dec 3, 2009
Authored by Frank Stuart

Running DISA SRR scripts against your server can get you easily rooted. They run arbitrary binaries discovered on the filesystem as root. They apparently need another Security Readiness Review script to first audit their own Security Readiness Review scripts.

tags | exploit, arbitrary, root
SHA-256 | 13c50db414a49c32d5f4758f05426bdffeba0664c8c8b172b8b141a84fe10206

DISA SRR Root Compromise

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

Executive Summary
- -----------------

Unprivileged local users can obtain root access on Unix systems where
the DISA SRR scripts are run. If a remote user can introduce a file
into the filesystem (e.g. anonymous ftp, http upload, cdrom, samba
share, etc.), root access may be obtained by remote, and potentially
anonymous, users.

Software Description
- --------------------

The U.S. Defense Information Systems Agency (DISA) publishes Security
Readiness Review scripts (SRRs) to ensure systems and software meet
security baselines required by the Department of Defense. The SRRs are
commonly run on military systems and DISA makes them available to other
government agencies and the general public (at their own risk) at
https://iase.disa.mil/stigs/SRR/index.html.

This vulnerability report applies to the current (October 15, 2009) Unix
SRR. It was tested on Solaris/x86 only but is expected to be applicable
to all Unix/Linux versions supported by the software. DISA publishes
SRR updates approximately once every two months and it is believed that
many previous versions are also vulnerable.

DISA also publishes SRR scripts for other software/operating systems
(e.g. Windows Vista, Oracle database, Open VMS). These could contain
similar vulnerabilities (I haven't gone looking for them).

Vulnerability Description
- -------------------------

The Unix SRR must be run as root and one of the first things it does is
a global find from /. It then runs a series of modular scripts looking
for specific vulnerabilities or Potential Discrepancy Items (PDIs).

Some of the PDIs include checks for specific versions of software.
Unfortunately, in some cases, it runs these unknown/untrusted/suspect
programs as root in an attempt to determine the version of the software
it found.

The following programs are known to be run:

java -version
openssl version
php -v
snort -V
tshark -v
vncserver -help
wireshark -v

An attacker can, for example, create an executable or shell script with
a root kit installer called "php", anywhere in the filesystem. When the
SRR is run, it will execute "php -v" as root and the root kit will be
installed. A clever attacker could print out the "good" version string
of php and silently install the root kit. A very clever attacker could
do the above and then replace the fake php with the real one, covering
his tracks.


Suggested Workaround
- --------------------

Do not run the DISA Unix SRR script until a fix is available.

Suggested Fix
- -------------

The publisher should do a comprehensive review of their software to make
sure they eliminate all cases where they execute
unknown/untrusted/suspect code as root. Ideally, they should not
execute such code at all, even as an unprivileged user. A better
approach would be to use "strings" or something similar to look for a
signature to try to determine the version of the software it found.


Vulnerability Reporting/Tracking
- --------------------------------
Reported to CERT Coordination Center September 21, 2009. Assigned
tracking number VU#433821.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - https://enigmail.mozdev.org/

iQEVAwUBSxdPY2KGA6cQSpZSAQJy4wf+MRAEiaL9jcHOHqReWBxyf+jSSsU8fxzK
uIDrJ03Dxg6cJuhiwSHkTbzlP7ay/O7xLY7e5PG3B42eSUTd5Fx1Nxauoo9TpSqY
yupE6i2lpOB1nXhjRdlEbuddzLTmBhcHL4K/PqG6EoN5gGbSBe15Jon7DPh681SQ
4AbFTX/8c/fs0KE+6w6J52Bq8mtY6KVDBZ2+yqnY6QSeH6k5+avb8skoeD2YR30y
OdMqwo11++z85FQ7Fih+GMeNSYTDDED61hbwsQaWnuS9kkil1FiMTGbNcWoKWORd
w3E2IQs6c4WxPeISw6bbsyCpm+nTDjDAw6gfkejvRVtD9HKjG7CL1Q==
=hWBM
-----END PGP SIGNATURE-----
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close