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
  • headache eye pain
  • how sleeping helps
  • lower back pain relief
  • cialis advertising
  • signs symptoms of high blood pressure
  • symptoms of congestive heart failure
  • flu help
  • cheap online prescription drugs
  • health care for dogs
  • acne prescription treatments
  • hoodia information
  • buy tadalafil online
  • acne treatment products
  • natural cure for erectile dysfunction
  • neck pain
  • how do you prevent bone loss
  • top performance pet care products
  • levitra online us
  • discount prescription drug
  • heart rate treatments
  • buy medicine to treat chlamydia
  • treatment parkinsons disease
  • cheap diet pills that work
  • order pain meds by phone
  • prednisone allergy
  • buy drugs online
  • fluconazole 150mg
  • viagra with xanax
  • menopause treatment
  • fast ways to lower blood pressure
  • ciprofloxacin 500mg
  • buy medication on line
  • blood pressure diet
  • a reliever of arthritic pain
  • buy celebrex online
  • canadian drug pharmacy
  • water pill
  • living with heart failure
  • calcium bone loss
  • order caffeine
  • preventing bone loss
  • cheapest drugs online
  • generic 5mg proscar cheap
  • buy dietary supplement
  • stop vomiting remedies
  • weight loss suppliments
  • hypothyroidism medication
  • discount erectile dysfunction medication
  • increasing blood flow
  • how can you prevent diabetes
  • dog ear health
  • order flagyl
  • ambien 20mg
  • clindamycin drug
  • pneumonia vs bronchitis
  • flonase otc
  • allegra effects side
  • does viagra really work
  • arthritis therapy
  • gabapentin dosage
  • dramamine dosage
  • how do you treat lung cancer
  • ways to lower cholesterol
  • how body burns fat
  • cialis 30
  • ranitidine interaction
  • phentermine with no prescription
  • hypertension medicines
  • medicines for blood clot
  • what does viagra do to females
  • buy vardenafil online
  • purchase medication
  • stop smoking today
  • buy medicine for type 2 diabetes
  • dog health tips
  • doxycycline dose
  • buy augmentin
  • medications ativan
  • upper back pain
  • order prozac
  • cheap retin a
  • treatment of heart attacks
  • prescription zocor
  • erectile dysfunction medications
  • lexapro prozac vs
  • male sexual power
  • sleep aid
  • online allegra
  • viagra gel
  • ramipril generic
  • medicine without prescriptions
  • addictive ambien
  • buy diazepam without prescription
  • online pharmacy carisoprodol
  • treatments for lung cancer
  • back pain medicine
  • klonopin pill
  • congestive heart failure treatment
  • drug dogs
  • new drug treatment for cancer
  • repels insects
  • rheumatoid arthritis medications
  • about levitra
  • buy prescription medicine online
  • erectile dysfunction treatments
  • osteoarthritis medication
  • diabetes drugs
  • tips for lowering blood pressure
  • how do i lower blood pressure
  • persistent diarrhea
  • lexapro info
  • canadian pharmacy
  • new weight loss pill
  • cheapest levitra
  • generic for levitra
  • enhance sexual performance
  • relieve neck pain
  • generic kamagra
  • dramamine dosage
  • chronic arthritis
  • drugs weight loss
  • disease of the skin
  • high blood sugar
  • arm muscle pain
  • medical products for pets
  • stroke treatment
  • alternative antibiotics
  • buying prescription drugs online
  • flonase otc
  • help with stop smoking
  • canadian online pharmacies
  • claritin dosages
  • chest pain home treatment
  • on-line pharmacies
  • flomax generic
  • discount pharmacy
  • problem skin
  • online ed drugs
  • zoloft buy
  • online prescription drug
  • pet health problems
  • topamax online
  • heart attack women
  • antibiotics bronchitis
  • order vitamins online
  • stop premature ejaculation
  • exercise for weight loss
  • us levitra
  • drug norvasc
  • usa dog products
  • xenical mexico prescriptions
  • increase male volume
  • prices levitra
  • dietary supplements
  • alzheimers treatment
  • reduce swelling methods
  • diet product
  • clomid dosage
  • nerve pain remedy
  • nolvadex generic
  • order calcium carbonate
  • ramipril medication
  • naturally lower cholesterol
  • pain meds without prescriptions
  • buy now viagra
  • discount vitamins supplements
  • treatment of bph
  • anti anxiety meds
  • men's health supplements
  • very high blood pressure
  • trazodone withdrawal
  • bladder control medicine
  • alternative blood pressure treatment
  • type 2 diabetes medications
  • naproxen 500mg
  • buy erectile dysfunction online
  • diuretic pills
  • coupon claritin
  • eye problems in cats
  • health drugs
  • diuretic medication
  • prednisone alternative
  • dosage digoxin
  • shoulder pain
  • arthritis relief natural
  • treatment for severe edema
  • robaxin dosage
  • build muscle
  • treatment hypertension
  • attention deficit
  • cheap baclofen
  • online sildenafil
  • fat loss
  • stop smoking cigerette
  • old dog products
  • uk pharmacy
  • lowering blood pressure naturally
  • levitra overnight
  • smoking cure
  • anxiety help