Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sicurezza > Esercizi Sicurezza - Attacchi Web - Lezione 5/5/2011
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
gennaro
ANZIANOTTO

User info:
Registered: Apr 2004
Posts: 65 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: secondo
Time Online: 1 Day, 16:27:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Esercizi Sicurezza - Attacchi Web - Lezione 5/5/2011

Ciao a tutti!!
Apro questo post (nella speranza che lo legga qualcuno)
per aiutarci a risolvere insieme gli esercizi proposti dagli esercitatori

http://gamebox.laser.dico.unimi.it/sec2/web1/index.html

Del warm up non sono riuscito a fare
It's easy (deve essere una cazzata clamorosa ma ci sto perdendo tempo)
Never trust biscuit (ho capito che la chiave di tutto sono i cookie, ho pensato che disabilitandoli avrei risolto il problema, ma facendo così nn si muove + nulla)

Gli esercizi sull'HTML:
qualcuno riesce darmi aiuto su WhiteHouse
e su Pack-man e WISYNWIG che sono collegati, visto che nel livello Pack-man c'è uno script che possiamo trovare appunto nel livello WISYNWIG

Speriamo che qualcuno risponda :)

06-05-2011 09:35
Click Here to See the Profile for gennaro Click here to Send gennaro a Private Message Find more posts by gennaro Add gennaro to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
simoki
antani

User info:
Registered: Apr 2007
Posts: 23 (0.00 al dì)
Location: milano
Corso: Informatica
Anno: 3
Time Online: 15:43:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao Gennaro

per quanto riguarda WhiteHouse :
nella GET cambia
Referer: http://gamebox.laser.dico.unimi.it/sec2/web1/ con http://whitehouse.gov/intranet/req.asp
e cambia il tuo User-Agent con WhitehouseBrowser/1.2

per Never trust biscuit:
cambia nella GET Cookie: Win=No con Win=Yes


It's easy , Pack-man e WISYNWIG ancora da superare.. idee?

09-05-2011 18:32
Click Here to See the Profile for simoki Click here to Send simoki a Private Message Find more posts by simoki Add simoki to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Questa é la soluzione per it's easy:

ho creato un file html con

PHP:

<html>
<body>

<form action="http://gamebox.laser.dico.unimi.it/sec2/web1/html-easy/index.php" method="post" style="text-align:center;">
   <p><input name="key" type="text" value="" /></p>
</form>

</body>
</html>



Spero di essere stato utile

10-05-2011 13:28
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

La soluzione di "Watch out for your head!":
Nell'header HTTP della pagina c'é

"X-CheckThisOut: la chiave e` header_rocks"

10-05-2011 13:40
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Shopping ha la stessa soluzione di "it's easy": Ho modificato il tag:

<input type="hidden" name="prezzo" value="5947" />


PHP:

<form method="post" action="http://gamebox.laser.dico.unimi.it/sec2/web1/html-hidden/hidden.php" id="form">
  <table style="margin-top: 2em; margin-bottom: 2em;" cellpadding="4" cellspacing="0" border="1">
  <tr>
  <th>Prodotti da acquistare</th>
  <th>Prezzo</th>
  <th>Quantit&agrave;</th>

  <th>Totale</th>
  </tr>
  <tr>
  <td>Televisore LCD 42 ''</td>
  <td class="center">&euro;&nbsp;5.947,00</td>
  <td class="center"><input type="text" name="qt" value="1" size="5" /></td>
  <td class="center">&euro;&nbsp;5.947,00</td>

  </tr>
  <tr>
  <td colspan="4" class="center">
  <input type="hidden" name="prezzo" value="1" />
  <input type="submit" value="Aggiorna" name="aggiorna" />
  <input type="submit" value="Compra" name="compra" />
  </td>
  </tr>
</table>

</form>

10-05-2011 13:45
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
simoki
antani

User info:
Registered: Apr 2007
Posts: 23 (0.00 al dì)
Location: milano
Corso: Informatica
Anno: 3
Time Online: 15:43:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Soluzione per PackMan:
lo script è

//eval function strrev(s){if(!s)return'';var a='';for(i=s.length-1;i>=0;i--){a+=s.charAt(i)}return a};function checkpass(){var s;clear=new Array();clear[11]='s';clear[8]='i';clear[3]='u';cl
ear[13]='x';clear[4]='s';clear[6]='a';clear[14]='s
';clear[9]='o';clear[0]='o';clear[10]='n';clear[7]
='t';clear[12]='u';clear[5]='c';clear[1]='b';clear
[2]='f';s=document.getElementById("pw").value;s=strrev(s);if(s==clear.join("")){alert("Hai vinto!")}else{alert("Naaa, riprova...")}};

è facile ricavarne la password :D

10-05-2011 14:31
Click Here to See the Profile for simoki Click here to Send simoki a Private Message Find more posts by simoki Add simoki to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non si capiva bene lo script perché era compresso in una riga.
forse cosí é piú umano:

PHP:

function strrev(s) {
    if (!s) return '';
    var a = '';
    for (i = s.length - 1; i >= 0; i--) {
        a += s.charAt(i)
    }
    return a
};

function checkpass() {
    var s;
    clear = new Array();
    clear[11] = 's';
    clear[8] = 'i';
    clear[3] = 'u';
    clear[13] = 'x';
    clear[4] = 's';
    clear[6] = 'a';
    clear[14] = 's';
    clear[9] = 'o';
    clear[0] = 'o';
    clear[10] = 'n';
    clear[7] = 't';
    clear[12] = 'u';
    clear[5] = 'c';
    clear[1] = 'b';
    clear[2] = 'f';
    s = document.getElementById("pw").value;
    s = strrev(s);
    if (s == clear.join("")) {
        alert("Hai vinto!")
    } else {
        alert("Naaa, riprova...")
    }
};

10-05-2011 15:01
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Esercizio Catch me!

Non so se é giusto ma ...........

Tenere cliccato il pulsante 9, si nota che il focus é sul tasto 1, quindi premere enter e poi tab per passare al tasto 2 e cosí via ....... al tasto 9 lasciare il click.

10-05-2011 15:30
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
simoki
antani

User info:
Registered: Apr 2007
Posts: 23 (0.00 al dì)
Location: milano
Corso: Informatica
Anno: 3
Time Online: 15:43:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

catch me!

io ho risolto "intercettando" catchme.js , modificando la funzione buttonover(id) con

function buttonover(id)
{
return;
}

non so se è lo scopo dell'esercizio ma funziona

10-05-2011 16:02
Click Here to See the Profile for simoki Click here to Send simoki a Private Message Find more posts by simoki Add simoki to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gennaro
ANZIANOTTO

User info:
Registered: Apr 2004
Posts: 65 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: secondo
Time Online: 1 Day, 16:27:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
grazie

grazie a tutti per le risposte, nonostante ciò ci sono alcune cose che nn mi tornano...

1) WhiteHouse: avete scritto
"nella GET cambia
Referer: http://gamebox.laser.dico.unimi.it/sec2/web1/ con http://whitehouse.gov/intranet/req.asp
e cambia il tuo User-Agent con WhitehouseBrowser/1.2"

MA DOVE E' LA GET?? visto che se clicco sul link mi viene subito fuori l'alert e nella pagine con "Access Denied" non c'è nessuna get

2) Watch out for your head!
"Nell'header HTTP della pagina c'é

"X-CheckThisOut: la chiave e` header_rocks"

TRA I TAG <head></head> NON TROVO NESSUNA SCRITTA SIMILE A QUELLA...NON C'E' DA NESSUNA PARTE?? Guardo nel posto sbagliato?

3) catch me!
sicuramente è giusto modificare lo script, anche io ho fatto così, quello di zack1988 non so neanche che tipo di "attacco" sia, mai pensato prima di risolvere un livello in un modo simile :D

4) il programma burpsuite vi funziona?? a me ci mette anni a caricare le pagine, attese infinite, tanto che per risolvere i livelli uso la console javascript di chrome o visualizzo i sorgenti e modifico tramite il browser perchè cn quel programma ci mette secoli...

10-05-2011 17:33
Click Here to See the Profile for gennaro Click here to Send gennaro a Private Message Find more posts by gennaro Add gennaro to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gennaro
ANZIANOTTO

User info:
Registered: Apr 2004
Posts: 65 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: secondo
Time Online: 1 Day, 16:27:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

p.s. cmq non riesco a capire cosa faccia la function checkpass...

10-05-2011 17:43
Click Here to See the Profile for gennaro Click here to Send gennaro a Private Message Find more posts by gennaro Add gennaro to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Cia Gennaro,

2) è lo header http, non lo head della pagina html. (http://it.wikipedia.org/wiki/Hypert...ansfer_Protocol), riesco a vederlo grazie a un'estensione di firefox che è web developer oppure guarda qui http://php.net/manual/en/function.get-headers.php (è una pagina php che stampa l'header)

3) per catch me, mi sembrava troppo semplice modificare lo script ;)

checkpass:
- dichiare un array che contiene : obfuscationsuxs
- prende il valore della pwd
- "ribalta" la pwd (funzione strrev )
- controlla che la stringa ottenuta sia uguale all'array
Quindi per far in modo che ti ritorni "hai vinto" devi scrivere sxusnoitacsufbo

Quelli successivi non riesco a farli, trovo alcuni indizi ma non capisco come si faccia a trovare la soluzione.

Ciao

10-05-2011 21:10
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gennaro
ANZIANOTTO

User info:
Registered: Apr 2004
Posts: 65 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: secondo
Time Online: 1 Day, 16:27:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

INCREDIBILE! SONO RIUSCITO A SUPERARE IL LIVELLO DELL'ADMIN AREA!!!!! :D

p.s. domanda strastupida...continuo a nn capire il livello della WhiteHouse...fino a cambiare UserAgent ok, fatto non ci vuole nulla...non capisco però dove devo modificare x far vedere che arrivo dalla http://whitehouse.gov/intranet/req.asp

Qualche idea sul livello WISYNWIG?

12-05-2011 17:30
Click Here to See the Profile for gennaro Click here to Send gennaro a Private Message Find more posts by gennaro Add gennaro to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

come hai fatto per "admin area" sono curioso.

Grazie

13-05-2011 08:44
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
simoki
antani

User info:
Registered: Apr 2007
Posts: 23 (0.00 al dì)
Location: milano
Corso: Informatica
Anno: 3
Time Online: 15:43:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by gennaro
INCREDIBILE! SONO RIUSCITO A SUPERARE IL LIVELLO DELL'ADMIN AREA!!!!! :D

p.s. domanda strastupida...continuo a nn capire il livello della WhiteHouse...fino a cambiare UserAgent ok, fatto non ci vuole nulla...non capisco però dove devo modificare x far vedere che arrivo dalla http://whitehouse.gov/intranet/req.asp

Qualche idea sul livello WISYNWIG?


Ciao Gennaro con Burp (o simili) intercetti la GET e modifichi il Referer
http://it.wikipedia.org/wiki/Referer

WISYNWIG ancora niente..

13-05-2011 15:21
Click Here to See the Profile for simoki Click here to Send simoki a Private Message Find more posts by simoki Add simoki to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 03:27.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.082 seconds (77.29% PHP - 22.71% MySQL) con 27 query.