bugTiger UNIX security tool - Bugs: bug #43336, Fix for missing escapes in...


bug #43336: Fix for missing escapes in check_accounts

Submitted by:  None
Submitted on:  Tue 30 Sep 2014 09:02:14 PM UTC  
Category: Security check modulesSeverity: 5-Critical
Item Group: Script errorStatus: Fixed
Privacy: PublicAssigned to: Javier Fernandez-Sanguino Peña <jfs>
Open/Closed: OpenOperating System: Debian GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 04 Feb 2018 01:21:01 PM UTC, comment #1:

Thank you for spotting this bug, I have committed a patch to GIT fixing the escaping of this check.

Javier Fernandez-Sanguino Peña <jfs>
Project AdministratorIn charge of this item.
Tue 30 Sep 2014 09:02:14 PM UTC, original submission:

In check_accounts in check_users() there is a check for shell init files which misses escapes for the quotes in the eval'd code.

Here is the patch:

--- /usr/lib/tiger/scripts/check_accounts 2012-04-18 19:45:35.000000000 +0200
+++ check_accounts 2014-09-30 22:50:51.765407045 +0200
@@ -303,7 +303,7 @@
eval "
case \"$shell\" in
- [ ! -r "${home}/.${shell##*/}rc" ] && {
+ [ ! -r \"${home}/.${shell##*/}rc\" ] && {
message WARN acc019w \"\" \"Login ID $user may be missing a shell initialization file ${home}/.${shell##*/}rc.\"



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jfs (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 04 Feb 2018 01:21:01 PM UTCjfsStatusNone=>Fixed
      Assigned toNone=>jfs

    Back to the top

    Powered by Savane 3.1-cleanup1