XPATH injection
Sluit aan by HackenProof Discord bediener om te kommunikeer met ervare hackers en bug bounty jagters!
Hacking Insigte Betrek met inhoud wat die opwinding en uitdagings van hacking ondersoek
Regte Tyd Hack Nuus Bly op hoogte van die vinnige hacking wêreld deur regte tyd nuus en insigte
Laaste Aankondigings Bly ingelig oor die nuutste bug bounties wat bekendgestel word en belangrike platform opdaterings
Sluit by ons aan op Discord en begin vandag saamwerk met top hackers!
Basic Syntax
'n Aanvalstegniek bekend as XPath Injection word gebruik om voordeel te trek uit toepassings wat XPath (XML Path Language) navrae vorm gebaseer op gebruikersinvoer om XML-dokumente te navraag of te navigeer.
Nodes Described
Uitdrukkings word gebruik om verskillende nodes in 'n XML-dokument te kies. Hierdie uitdrukkings en hul beskrywings word hieronder saamgevat:
nodename: Alle nodes met die naam "nodename" word gekies.
/: Keuse word gemaak vanaf die wortel node.
//: Nodes wat ooreenstem met die keuse vanaf die huidige node word gekies, ongeag hul ligging in die dokument.
.: Die huidige node word gekies.
..: Die ouer van die huidige node word gekies.
@: Attribuut word gekies.
XPath Examples
Voorbeelde van paduitdrukkings en hul resultate sluit in:
bookstore: Alle nodes met die naam "bookstore" word gekies.
/bookstore: Die wortelelement bookstore word gekies. Dit word opgemerk dat 'n absolute pad na 'n element verteenwoordig word deur 'n pad wat met 'n skuinsstreep (/) begin.
bookstore/book: Alle boek elemente wat kinders van bookstore is, word gekies.
//book: Alle boek elemente in die dokument word gekies, ongeag hul ligging.
bookstore//book: Alle boek elemente wat afstammelinge van die bookstore element is, word gekies, maak nie saak hul posisie onder die bookstore element nie.
//@lang: Alle attribuut met die naam lang word gekies.
Utilization of Predicates
Predikate word gebruik om keuses te verfyn:
/bookstore/book[1]: Die eerste boek element kind van die bookstore element word gekies. 'n Oplossing vir IE weergawes 5 tot 9, wat die eerste node as [0] indekseer, is om die SelectionLanguage na XPath deur JavaScript in te stel.
/bookstore/book[last()]: Die laaste boek element kind van die bookstore element word gekies.
/bookstore/book[last()-1]: Die voorlaaste boek element kind van die bookstore element word gekies.
/bookstore/book[position()<3]: Die eerste twee boek elemente kinders van die bookstore element word gekies.
//title[@lang]: Alle titel elemente met 'n lang attribuut word gekies.
//title[@lang='en']: Alle titel elemente met 'n "lang" attribuut waarde van "en" word gekies.
/bookstore/book[price>35.00]: Alle boek elemente van die bookstore met 'n prys groter as 35.00 word gekies.
/bookstore/book[price>35.00]/title: Alle titel elemente van die boek elemente van die bookstore met 'n prys groter as 35.00 word gekies.
Handling of Unknown Nodes
Wildcard karakters word gebruik om onbekende nodes te pas:
*: Pas enige element node.
@*: Pas enige attribuut node.
node(): Pas enige node van enige soort.
Verder voorbeelde sluit in:
/bookstore/*: Kies alle die kind element nodes van die bookstore element.
//*: Kies alle elemente in die dokument.
//title[@*]: Kies alle titel elemente met ten minste een attribuut van enige soort.
Example
Toegang tot die inligting
Identifiseer & steel die skema
Outentiekeer Omseiling
Voorbeeld van navrae:
OF omseiling in gebruiker en wagwoord (dieselfde waarde in albei)
Misbruik van null-inspuiting
Dubbele OF in gebruikersnaam of in wagwoord (is geldig met slegs 1 kwesbare veld)
BELANGRIJK: Let daarop dat die "en" die eerste operasie is wat gedoen word.
String extraction
Die uitvoer bevat stringe en die gebruiker kan die waardes manipuleer om te soek:
Blind Explotation
Kry die lengte van 'n waarde en ekstraheer dit deur vergelykings:
Python Voorbeeld
Lees lêer
OOB Exploitatie
Outomatiese hulpmiddel
Verwysings
Sluit aan by HackenProof Discord bediener om met ervare hackers en bug bounty jagters te kommunikeer!
Hacking Inligting Betrek met inhoud wat die opwinding en uitdagings van hacking ondersoek
Regte Tyd Hack Nuus Bly op hoogte van die vinnige hacking wêreld deur middel van regte tyd nuus en insigte
Laaste Aankondigings Bly ingelig oor die nuutste bug bounties wat bekendgestel word en belangrike platform opdaterings
Sluit by ons aan op Discord en begin vandag saamwerk met top hackers!
Last updated