| cover | ../.gitbook/assets/2012iis.png |
|---|---|
| coverY | 0 |
https://youtu.be/XlmeSFm3RT4?si=hfhzGF9ymG6Igt5j 
https://www.youtube.com/watch?v=cqM-MdPkaWo 
https://www.youtube.com/watch?v=yyD8Z5Qar5I 
https://www.youtube.com/watch?v=_4W0WXUatiw
{% embed url="https://x.com/infosec_au/status/1340785029899698181" %}
{% embed url="https://soroush.me/blog/" %}
{% embed url="https://soroush.me/blog/2019/04/exploiting-deserialisation-in-asp-net-via-viewstate/" %}
{% embed url="https://retkoussa.medium.com/microsoft-iis-server-shortnames-tilde-magic-64df65d26450" %}
{% embed url="https://medium.com/@far00t01/asp-net-microsoft-iis-pentesting-04571fb071a4" %}
{% embed url="https://book.hacktricks.xyz/network-services-pentesting/pentesting-web/iis-internet-information-" %}
-
Got HTTPAPI ERROR 404
-
It is IP but you can get the subdomain from the certificate common name
-
Edit the Host Header
- Came across subdomain that running IIS Server apply.company.com
- VHost Enumeration using ffuf or burp intruder
- Found mssql.company.com
- Running MSSQL Explorer/Manager
- DownloadCategoryExcel?fileName=../../web.config
- DownloadCategoryExcel?fileName=../../glopal.asax
- <add namespace="Company.Web.Api.dell/>
- DownloadCategoryExcel?fileName=../../bin/Company.Web.Api.dll
- https://bit.ly/2MzJ1qI
- Optain machinekey from web.config file (validation key and decryption keyy)
- VIEWSTATE -> Insecure Deserialization -> RCE
- https://github.com/0xacb/viewgen
{% embed url="https://mohemiv.com/all/exploiting-xxe-with-local-dtd-files/" %}
{% embed url="https://blog.isec.pl/all-is-xss-that-comes-to-the-net/" %}
- Try in login pages, redirects, forms & dynamic URL construction (~/images/). Payload:
/(A(%22onerror='alert%60123%60'test))/
{% embed url="https://x.com/nav1n0x/status/1799384973407031565" %}
- Found Leaked zip files contains DLL Files?
- https://github.com/dnSpy/dnSpy
- Use DNSpy to reverse them to source code
- or https://www.jetbrains.com/decompiler/
- iisfinal.txt
- https://github.com/orwagodfather/WordList/blob/main/iis.txt
- https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/Web-Content/IIS.fuzz.txt
- http://itdrafts.blogspot.com/2013/02/aspnetclient-folder-enumeration-and.html
- https://github.com/digination/dirbuster-ng/blob/master/wordlists/vulns/iis.txt
- https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/Web-Content/SVNDigger/cat/Language/aspx.txt
- https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/Web-Content/SVNDigger/cat/Language/asp.txt
- https://raw.githubusercontent.com/xmendez/wfuzz/master/wordlist/vulns/iis.txt
ffuf -w iis.txt -uhttps://example.com/FUZZffuf -w iis.txt -uhttps://example.com/shortnameFUZZ
shortscan https://apply.company.com/- IIS Short Name Scanner
- Explore the latest version on GitHub.
- Got a part of file names not the full name ? let's fuzz the rest
- LIDSDI -> LIDFUZZ | EASYFI -> EASYFUZZ
ffuf -w wordlist.txt -D -e asp,aspx,ashx,asmx -t 100 -c -u https://apply.company.com/lidsFUZZ- You can make your own wro=dlist using wordlist generator
https://sourceforge.net/projects/crunch-wordlist/
https://github.com/jim3ma/crunch ./crunch 0 3 abcdefghijklmnopqrstuvwxyz0123456789 -o 3char.txt- Fuzzing doesn't work? try search in Github or use https://github.com/retkoussa/gsnw
Check out the Nuclei templates for fuzzing techniques.
Utilize Shodan to identify IIS instances with specific characteristics:
http.title:"IIS"Ssl:"Company Inc." http.title:"IIS"Ssl.cert.subject.CN:"company.in" http.title:"IIS"
ASP.NET_SessionidASPSESSION
X-AspNet-Version: (.*)\\;version:\\1X-Powered-By:^ASP\\.NET
<input[^>]+name\"_VIEWSTATE
\\.aspx?(?.$|\\?)
Exclude these directories from your scans:
ASPNET~1DEFAULT~1.ASPDEFAULT~1.CSSGLOBAL.ASAGLOBAL.ASPGLOBAL.CSMASTER.CSWEB.CON
Bruteforce file extensions to uncover vulnerabilities:
.aspx(Legacy active server pages).aspx(Modern Active server pages).ashx(APIs/AJAX).wsdl(Web Services Description Language).wadl(Web Application Description Languages).asmx(XML Web Services).xml.zip.txt
naabu -host iis.target.com