The Web Application Hacker’s Handbook Discovering and Exploiting Security Flaws


Chapter 13  ■ Automating Bespoke Attacks



Download 5,76 Mb.
Pdf ko'rish
bet823/875
Sana01.01.2022
Hajmi5,76 Mb.
#293004
1   ...   819   820   821   822   823   824   825   826   ...   875
Bog'liq
3794 1008 4334

Chapter 13 



Automating Bespoke Attacks



487

70779c13.qxd:WileyRed  9/14/07  3:14 PM  Page 487




Using automation to facilitate vulnerability discovery is of particular bene-

fit in a large and complex application containing dozens of dynamic pages,

each of which accepts numerous parameters. Testing every request manually,

and tracking the pertinent details of the application’s responses to related

requests, is a near-impossible task. The only practical way to probe such an

application is to leverage automation to replicate many of the laborious tasks

that you would otherwise need to perform manually. 

Consider the following example request, which contains several parameters

of different types:

POST /app/acc/login.jsp?ts=29813&_DARGS=/app/acc/login_assumed.jsp HTTP/1.1

Host: wahh-app.com

Cookie: webabacus_id=131st22418177-1; DYN_USER_ID=100014981;

USER_CONFIRM=836de5f76c5ec83; ParkoSearch2007=true;

JSESSIONID=DKBHCAOQQWHFFCKTR

Content-Length: 160

_dyncharset=UTF-8&_template=app/inc/templ.jsp&personalDetailsURL=..%2Facc%2

Fregister_p1.jsp&login=user@wahh-mail.com&originalRedirectFromURL=+&password=

bestinfw


Suppose that we wish to probe this request for common defects within the

application. As an initial exploration of the attack surface, we decide to submit

the following strings in turn within each parameter:

■■



— This will generate an error in some instances of SQL injection.

■■

;/bin/ls



— This string will cause unexpected behavior in some cases

of command injection.

■■

../../../../../etc/passwd



— This string will cause a different

response in some cases where a path traversal flaw exists.

■■

xsstest


— If this string is copied into the server’s response then the

application may be vulnerable to cross-site scripting.

We can extend the JAttack tool to generate these payloads by creating a new

payload source, as follows:

class PSFuzzStrings implements PayloadSource

{

static final String[] fuzzStrings = new String[]



{

“‘“, “;/bin/ls”, “../../../../../etc/passwd”, “xsstest”

};

int current = -1;



public boolean nextPayload()

{


Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   819   820   821   822   823   824   825   826   ...   875




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish