Menu

#3 pscre function missing from ouput sensor rules

open-fixed
None
1
2004-03-08
2004-03-05
No

Rules containing the pcre 'function' are missing that part
when output for a sensor. eg sid: 2267 should look like:-
alert tcp $EXTERNAL_NET any -> $SMTP_SERVERS 25
( sid: 2267; rev: 1; msg: "SMTP MAIL FROM sendmail
prescan too many addresses overflow"; flow:
to_server,established; content: "MAIL FROM\:"; nocase;
pcre: "/^MAIL FROM\x3a\s*[^\n]*?<[^\n]*?<[^\n]*?<
[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<
[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<
[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<
[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<[^\n]*?<
[^\n]*?<[^\n]*?<[^\n; reference: bugtraq,6991;
reference: cve,CAN-2002-1337; classtype: attempted-
admin;)

but actually looks like:-
alert tcp $EXTERNAL_NET any -> $SMTP_SERVERS 25
( sid: 2267; rev: 1; msg: "SMTP MAIL FROM sendmail
prescan too many addresses overflow"; flow:
to_server,established; content: "MAIL FROM\:"; nocase;
reference: bugtraq,6991; reference: cve,CAN-2002-
1337; classtype: attempted-admin;)

should be about 105 rules that have pcre in them but my
output only contains 1.

Discussion

  • Jason Alexander

    Jason Alexander - 2004-03-05
    • assigned_to: nobody --> jaalex
     
  • Jason Alexander

    Jason Alexander - 2004-03-05

    Logged In: YES
    user_id=984574

    I'll look at the code this weekend. I might have committed
    the wrong version. I was working personally on subversion
    and then converted back to CVS for sourcforge. I was
    reasonably sure I check this and it was working.

    Jason

     
  • Jason Alexander

    Jason Alexander - 2004-03-06
    • status: open --> pending
     
  • Jason Alexander

    Jason Alexander - 2004-03-06

    Logged In: YES
    user_id=984574

    I just updated sensor.inc.php and database.php in the CVS. Grab those files
    and see if it works for you now. It looks like the rules are coming out
    correctly here. If your still having problems let me know

    Jason

     
  • Jason Alexander

    Jason Alexander - 2004-03-06
    • status: pending --> open
     
  • Brian Jameson

    Brian Jameson - 2004-03-07

    Logged In: YES
    user_id=991123

    Jason, The revised files have sorted out the problem. Thank
    you. I did notice one odd thing in getting my system back in
    line once I had revised that data base to the new format
    (pscre text instead of Varchar). The pcre items that had
    overflowed had to have the whole rule deleted via sql in order
    to get the data to update correctly with a rule update from
    the Internet. I wondered if this was another bit of code I was
    missing?

    Great to have a viable snortcenter system again! Keep up the
    good work.

     
  • Jason Alexander

    Jason Alexander - 2004-03-07

    Logged In: YES
    user_id=984574

    Ummm, No it probably means I missed an update statement.
    There are several different ways that rules can get written
    into the database.

    I'll take a look at see if I can see why that might be
    happening. It might have to do with the reformatting of the
    database.

    Jason

     
  • Jason Alexander

    Jason Alexander - 2004-03-08
    • priority: 5 --> 1
    • status: open --> open-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB