XPATH injection
Join HackenProof Discord server to communicate with experienced hackers and bug bounty hunters!
Hacking Insights Engage with content that delves into the thrill and challenges of hacking
Real-Time Hack News Keep up-to-date with fast-paced hacking world through real-time news and insights
Latest Announcements Stay informed with the newest bug bounties launching and crucial platform updates
Join us on Discord and start collaborating with top hackers today!
Basic Syntax
Teknolojia ya shambulio inayojulikana kama XPath Injection inatumika kuchukua faida ya programu ambazo zinaunda XPath (XML Path Language) maswali kulingana na pembejeo za mtumiaji ili kuuliza au kuvinjari hati za XML.
Nodes Described
Mifano inatumika kuchagua nodi mbalimbali katika hati ya XML. Mifano hii na maelezo yao yamejumuishwa hapa chini:
nodename: Nodi zote zenye jina "nodename" zinachaguliwa.
/: Uchaguzi unafanywa kutoka kwa nodi ya mzizi.
//: Nodi zinazolingana na uchaguzi kutoka kwa nodi ya sasa zinachaguliwa, bila kujali mahali zilipo katika hati.
.: Nodi ya sasa inachaguliwa.
..: Nodi ya mzazi wa nodi ya sasa inachaguliwa.
@: Sifa zinachaguliwa.
XPath Examples
Mifano ya mifano ya njia na matokeo yao ni pamoja na:
bookstore: Nodi zote zenye jina "bookstore" zinachaguliwa.
/bookstore: Kigezo cha mzizi bookstore kinachaguliwa. Inabainishwa kuwa njia kamili ya kipengele inawakilishwa na njia inayaanza na slash (/).
bookstore/book: Vipengele vyote vya kitabu ambavyo ni watoto wa bookstore vinachaguliwa.
//book: Vipengele vyote vya kitabu katika hati vinachaguliwa, bila kujali mahali vilipo.
bookstore//book: Vipengele vyote vya kitabu ambavyo ni wazazi wa kipengele bookstore vinachaguliwa, bila kujali nafasi yao chini ya kipengele bookstore.
//@lang: Sifa zote zenye jina lang zinachaguliwa.
Utilization of Predicates
Predicates zinatumika kuboresha uchaguzi:
/bookstore/book[1]: Kipengele cha kwanza cha kitabu mtoto wa kipengele bookstore kinachaguliwa. Njia mbadala kwa ajili ya toleo za IE 5 hadi 9, ambazo zinaorodhesha nodi ya kwanza kama [0], ni kuweka SelectionLanguage kuwa XPath kupitia JavaScript.
/bookstore/book[last()]: Kipengele cha mwisho cha kitabu mtoto wa kipengele bookstore kinachaguliwa.
/bookstore/book[last()-1]: Kipengele cha pili cha mwisho cha kitabu mtoto wa kipengele bookstore kinachaguliwa.
/bookstore/book[position()<3]: Vipengele viwili vya kwanza vya kitabu watoto wa kipengele bookstore vinachaguliwa.
//title[@lang]: Vipengele vyote vya kichwa vyenye sifa ya lang vinachaguliwa.
//title[@lang='en']: Vipengele vyote vya kichwa vyenye thamani ya sifa ya "lang" ya "en" vinachaguliwa.
/bookstore/book[price>35.00]: Vipengele vyote vya kitabu vya bookstore vyenye bei zaidi ya 35.00 vinachaguliwa.
/bookstore/book[price>35.00]/title: Vipengele vyote vya kichwa vya vipengele vya kitabu vya bookstore vyenye bei zaidi ya 35.00 vinachaguliwa.
Handling of Unknown Nodes
Wildcards zinatumika kwa ajili ya kulinganisha nodi zisizojulikana:
*: Inalingana na nodi yoyote ya kipengele.
@*: Inalingana na nodi yoyote ya sifa.
node(): Inalingana na nodi yoyote ya aina yoyote.
Mifano zaidi ni pamoja na:
/bookstore/*: Inachagua nodi zote za watoto za kipengele bookstore.
//*: Inachagua vipengele vyote katika hati.
//title[@*]: Inachagua vipengele vyote vya kichwa vyenye angalau sifa moja ya aina yoyote.
Example
Fikia taarifa hizo
Tambua & kuiba muundo
Authentication Bypass
Mfano wa maswali:
AU kupita katika mtumiaji na nenosiri (thamani sawa katika zote mbili)
Kutitisha sindano ya null
Double OR katika Jina la Mtumiaji au katika nenosiri (ni halali na uwanja mmoja tu dhaifu)
MUHIMU: Tambua kwamba "na" ndiyo operesheni ya kwanza inayofanywa.
Utoaji wa nyuzi
Matokeo yana nyuzi na mtumiaji anaweza kubadilisha thamani ili kutafuta:
Blind Explotation
Pata urefu wa thamani na uitoe kwa kulinganisha:
Mfano wa Python
Soma faili
OOB Ukatili
Chombo cha Moja kwa Moja
Marejeo
Jiunge na HackenProof Discord server ili kuwasiliana na hackers wenye uzoefu na wawindaji wa makosa!
Maoni ya Udukuzi Shiriki na maudhui yanayochunguza msisimko na changamoto za udukuzi
Habari za Udukuzi za Wakati Halisi Endelea kuwa na habari kuhusu ulimwengu wa udukuzi kwa kupitia habari na maoni ya wakati halisi
Matangazo ya Karibuni Baki na habari kuhusu makosa mapya yanayoanzishwa na masasisho muhimu ya jukwaa
Jiunge nasi kwenye Discord na anza kushirikiana na hackers bora leo!
Last updated