bugTiger UNIX security tool - Bugs: bug #34028, check_signatures $loc_signature...


bug #34028: check_signatures $loc_signature variable assignment

Submitted by:  pyllyukko <pyllyukko>
Submitted on:  Tue Aug 16 19:26:14 2011  
Category: Security check modulesSeverity: 5-Critical
Item Group: Script errorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: Any Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Tue Aug 16 19:26:14 2011, original submission:

There is a bug in the check_signatures script in the part where the variable $loc_signature is assigned. The output of md5sum is assigned to this variable and md5sum also outputs the source where the hash was computed instead of just the hash.

From MD5SUM(1): "The default mode is to print a line with checksum, a character indicating type (`*' for binary, ` ' for text), and name for each FILE."

In this case the input (or the FILE) is STDIN which is represented as a hyphen.

So the actual check in the Bash script looks like this:
+ '[' '<hash> -' = <hash> ']'
And this produces sig004w false positives out of every file it

This can be easily fixed by using Awk. See the attached patch file.

pyllyukko <pyllyukko>


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

Attach File(s):

Attached Files
file #23818:  check_signatures.patch added by pyllyukko (518B - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by pyllyukko (Submitted the item)

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Aug 16 19:30:53 2011pyllyukkoCarbon-CopyRemoved pyllyukko=>-
    Tue Aug 16 19:26:52 2011pyllyukkoAttached File-=>Added check_signatures.patch, #23818
    Tue Aug 16 19:26:14 2011pyllyukkoCarbon-Copy-=>Added pyllyukko

    Back to the top

    Powered by Savane 3.1-cleanup1