Here is an interesting one.

Basically, the ASPROX SQL Injection attack appears to be quite commonplace at the moment, but also quite serious.
To cut it short, there is a 20,000 strong botnet out there trying these attacks against websites which use .asp.
The tool actually uses google to search for these sites and then attempts to exploit them by inserting an HTML iFrame which downloads a malicious Java Script which then installs a Trojan.

Carry on reading to find out how to block this on a Cisco router!

The config is as follows, please bare in mind that you will probably need a reasonably specced router and IOS for this. IP CEF is a pre-requisite. I have tested this on 7200 series, 1700 series and 2600 series so far, leave a comment if you have sucessfully tried this on another router!

Config:

The below access list and route-map is used to take any packets that have been tagged with a DSCP value of 1 and route them to a non-existant interface. You will learn how to tag them below!

access-list 130 permit ip any any dscp 1

route-map ASPROX_POLICY_ROUTE_BITBUCKET permit 10
match ip address 130
set interface Null0

The below class-map basically tells the router that we want to match when a specific string is seen in a URL. In this case, the string is part of the get request that the attack uses. Note the “\” which are needed before any bracket as a delimiter!

class-map match-any ASPROX_CLASS
match protocol http url “*DECLARE%20@S%20VARCHAR\(4000\);SET*”

The Policy-map below basically tags any packet matching the above class-map with a DSCP value of 1.

policy-map ASPROX_POL
class ASPROX_CLASS
set ip dscp 1

The rest of the config attaches both the route map and the Service policy to the interface.

Interface FastEthernet0/0
ip policy route-map ASPROX_POLICY_ROUTE_BITBUCKET
service-policy input ASPROX_POL

To confirm that this is being hit you can do a “show policy-map interface” on the router. You should see the packets incrementing. This of course assumes that you are actually seeing the traffic ;)
If not, you could craft the URL yourself to confirm. So, taking this site as an example it would be:

www.cisconews.co.uk//?DECLARE%20@S%20VARCHAR(4000);SET%20@S=CAST

You should then see the packets increment.

Bare in mind that Microsoft released a tool to audit your source code for these vulnerabilities:

http://support.microsoft.com/kb/954476

Let us know if this was of any use to you in the comments!

3 Responses to “ASPROX SQL Injection Attacks - Block them using a Cisco router”

  1. Beanie says:

    This virus took my site offline for 3 weeks and I had to seek an internet security company to fix my site.

    It cost me £50 but well worth it after the hastle I have had!!

    Hope this helps others:
    http://www.firestorm-online.com/trojans/asprox/

  2. Bookmarks about Sql says:

    [...] - bookmarked by 4 members originally found by nipunthebest on July 17, 2008 ASPROX SQL Injection Attacks - Block them using a Cisco router http://cisconews.co.uk/2008/07/09/asprox-sql-injection-attacks-block-them-using-a-cisco-router/ - [...]

  3. SQL Tutorials says:

    You know, the thing about SQL is, that there is virtually nothing that can replace it.

    Does anyone know if a substitute exists for sql? I mean besides MS SQL and Oracle and all that jazz. Thanks.

Leave a Reply

Add to Technorati Favorites Add to Google
  • male sexual power
  • viagra and sports
  • internet pills
  • blood pressure tablets side effects
  • fat loss diet
  • old dog products
  • help to stop smoking
  • buy viagra professional
  • skin cancer treatments
  • arm pain
  • lasix cheap
  • where can i buy cialis
  • finasteride pharmacy
  • diet for diarrhea
  • how to build muscle mass
  • sale levitra
  • next day medication
  • buy cialis where
  • cheap uroxatral
  • generic online order viagra
  • hypertension drug
  • pet medication online
  • senna constipation
  • white spots on face
  • breast increasing oils
  • free hoodia
  • pain behind knee
  • levitra online order
  • natural cure for erectile dysfunction
  • acne products
  • insomnia medicine that works
  • treatments for infertility
  • pain medicine online ordering
  • medication ranitidine
  • muscle pain in leg
  • synthroid tablets
  • drug phenergan
  • drug hydroxyzine
  • quickly stop smoking
  • migraine medicine
  • man health
  • a reliever of arthritic pain
  • cheap cialis online
  • treatment for malaria
  • about soma
  • drugs for type 2 diabetes
  • prilosec order
  • parasite infestation
  • flu treatment
  • safe diet pill
  • diet and health products
  • serevent generic
  • pain pregnancy relief
  • child diabetes
  • valsartan generic
  • recipes for weight loss
  • pharmacy zolpidem
  • parkinsons treatment
  • voltaren tablets
  • new diet supplements
  • back pain products
  • medication skelaxin
  • asthma medication
  • treatment for chronic anxiety
  • norvasc dose
  • retin a buy
  • new cholesterol medicines
  • where to get viagra or cialis
  • how effective are anti depressants
  • us online pharmacy
  • online prep diet pills
  • top acne treatments
  • drug zyban
  • perfect pet products
  • lower left abdominal pain
  • what lowers blood pressure
  • asthma medicine
  • discount pet products
  • prilosec 20
  • soma 250mg
  • cialis 10 20 mg
  • healthy pet treats
  • buy cla
  • left side pain
  • cure bronchitis
  • medical chlamydia
  • information allegra
  • order viagra soft
  • diabetes medicine new
  • asthma cough
  • msm information
  • cancer med
  • nolvadex 20mg
  • antibiotics bactrim
  • immune system support products
  • vitamins discount
  • diarrhea in pregnancy
  • weight loss support
  • men's health supplements
  • cheap coumadin
  • quitting zyban
  • sleeping help
  • anti depression drugs
  • treatment for aids
  • loratadine claritin
  • new weight loss drugs
  • drugs lower heart rate
  • flonase otc
  • buy viagra cheap
  • prevacid medication
  • medical pain relief
  • cialis 10 mg
  • tips for weight loss
  • energy diet aids
  • diet medicine
  • gouty osteoarthritis
  • levitra buy
  • weight loss after birth
  • cialis buy on line
  • celexa no prescription
  • high blood pressure symtoms
  • no prescription needed pharmacies
  • cleaning a dogs ear
  • taking diflucan
  • test natural antibiotics
  • serious skin care
  • online kamagra
  • treatment for the flu
  • aricept generic
  • what is generic viagra
  • woman health problems
  • strep antibiotics
  • buy medicine for type 2 diabetes
  • generic trileptal
  • professional tooth whitening
  • buy drugs
  • help with anxiety
  • relieve joint pain naturally
  • levitra do for men
  • how to relieve back pain
  • cat care
  • blood pressure medication names
  • fast weight loss cheap pills
  • hair loss in woman
  • dramamine dosage
  • cholesterol herbs
  • alprazolam
  • generic medication for chronic pain
  • nexium pharmacy
  • chronic neck pain
  • anxiety order
  • buy prescription drugs with no prescription
  • soma mexico
  • prilosec order
  • san diego soma
  • symptoms of congestive heart failure
  • hard stools
  • cheap online pharmacy
  • coreg online
  • canada in levitra
  • no prescription medicine
  • symptoms high blood pressure
  • ways to reduce cholesterol
  • back pain high blood pressure
  • swelling
  • how to avoid a hangover
  • drugs no prescription
  • generic for ultram
  • what are beta-blockers
  • osteoporosis evista
  • arthritis menopause
  • propecia prescription
  • buy prescription medication online
  • energy product
  • levitra buy
  • on-line pharmacy
  • diabetes medication
  • acne treatment products
  • avodart prescription
  • where buy cialis
  • treatment for type 1 diabetes
  • hair loss help
  • best arthritis drug
  • new drugs for depression
  • vitamins discount
  • drugs for diabetes
  • buy premarin on line
  • new treatment for diabetes
  • relief pain
  • cheapest place buy viagra online
  • beta-blockers for women
  • diabetes treatments
  • weight loss workout
  • depression therapy
  • crestor generic
  • cheap cialis site
  • cheap xanax next day delivery
  • man flu
  • purchase levitra in canada
  • how to buy pain meds online