sexta-feira, 19 de janeiro de 2024

Testing SAML Endpoints For XML Signature Wrapping Vulnerabilities

A lot can go wrong when validating SAML messages. When auditing SAML endpoints, it's important to look out for vulnerabilities in the signature validation logic. XML Signature Wrapping (XSW) against SAML is an attack where manipulated SAML message is submitted in an attempt to make the endpoint validate the signed parts of the message -- which were correctly validated -- while processing a different attacker-generated part of the message as a way to extract the authentication statements. Because the attacker can arbitrarily forge SAML assertions which are accepted as valid by the vulnerable endpoint, the impact can be severe. [1,2,3]

Testing for XSW vulnerabilities in SAML endpoints can be a tedious process, as the auditor needs to not only know the details of the various XSW techniques, but also must handle a multitude of repetitive copy-and-paste tasks and apply the appropriate encoding onto each message. The latest revision of the XSW-Attacker module in our BurpSuite extension EsPReSSo helps to make this testing process easier, and even comes with a semi-automated mode. Read on to learn more about the new release! 

 SAML XSW-Attacker

After a signed SAML message has been intercepted using the Burp Proxy and shown in EsPReSSO, you can open the XSW-Attacker by navigating to the SAML tab and then the Attacker tab.  Select Signature Wrapping from the drop down menu, as shown in the screenshot below:



To simplify its use, the XSW-Attacker performs the attack in a two step process of initialization and execution, as reflected by its two tabs Init Attack and Execute Attack. The interface of the XSW-Attacker is depicted below.
XSW-Attacker overview

The Init Attack tab displays the current SAML message. To execute a signature wrapping attack, a payload needs to be configured in a way that values of the originally signed message are replaced with values of the attacker's choice. To do this, enter the value of a text-node you wish to replace in the Current value text-field. Insert the replacement value in the text-field labeled New value and click the Add button. Multiple values can be provided; however, all of which must be child nodes of the signed element. Valid substitution pairs and the corresponding XPath selectors are displayed in the Modifications Table. To delete an entry from the table, select the entry and press `Del`, or use the right-click menu.

Next, click the Generate vectors button - this will prepare the payloads accordingly and brings the Execute Attack tab to the front of the screen.

At the top of the Execute Attack tab, select one of the pre-generated payloads. The structure of the selected vector is explained in a shorthand syntax in the text area below the selector.
The text-area labeled Attack vector is editable and can be used to manually fine-tune the chosen payload if necessary. The button Pretty print opens up a syntax-highlighted overview of the current vector.
To submit the manipulated SAML response, use Burp's Forward button (or Go, while in the Repeater).

Automating XSW-Attacker with Burp Intruder

Burp's Intruder tool allows the sending of automated requests with varying payloads to a test target and analyzes the responses. EsPReSSO now includes a Payload Generator called XSW Payloads to facilitate when testing the XML processing endpoints for XSW vulnerabilities. The following paragraphs explain how to use the automated XSW attacker with a SAML response.

First, open an intercepted request in Burp's Intruder (e.g., by pressing `Ctrl+i`). For the attack type, select Sniper. Open the Intruder's Positions tab, clear all payload positions but the value of the XML message (the `SAMLResponse` parameter, in our example). Note: the XSW-Attacker can only handle XML messages that contain exactly one XML Signature.
Next, switch to the Payloads tab and for the Payload Type, select Extension-generated. From the newly added Select generator drop-down menu, choose XSW Payloads, as depicted in the screenshot below.



While still in the Payloads tab, disable the URL-encoding checkbox in the Payload Encoding section, since Burp Intruder deals with the encoding automatically and should suffice for most cases.
Click the Start Attack button and a new window will pop up. This window is shown below and is similar to the XSW Attacker's Init Attack tab.


Configure the payload as explained in the section above. In addition, a schema analyzer can be selected and checkboxes at the bottom of the window allow the tester to choose a specific encoding. However, for most cases the detected presets should be correct.

Click the Start Attack button and the Intruder will start sending each of the pre-generated vectors to the configured endpoint. Note that this may result in a huge number of outgoing requests. To make it easier to recognize the successful Signature Wrapping attacks, it is recommended to use the Intruder's Grep-Match functionality. As an example, consider adding the replacement values from the Modifications Table as a Grep-Match rule in the Intruder's Options tab. By doing so, a successful attack vector will be marked with a checkmark in the results table, if the response includes any of the configure grep rules.

Credits

EsPReSSO's XSW Attacker is based on the WS-Attacker [4] library by Christian Mainka and the original adoption for EsPReSSO has been implemented by Tim Günther.
Our students Nurullah Erinola, Nils Engelberts and David Herring did a great job improving the execution of XSW and implementing a much better UI.

---

[1] On Breaking SAML - Be Whoever You Want to Be
[2] Your Software at My Service
[3] Se­cu­ri­ty Ana­ly­sis of XAdES Va­li­da­ti­on in the CEF Di­gi­tal Si­gna­tu­re Ser­vices (DSS)
[4] WS-Attacker
More information

HiddenWasp Linux Malware Backdoor Samples





Intezer HiddenWasp Malware Stings Targeted Linux Systems 




Links updated: Jan 19, 2023


File informatio


8914fd1cfade5059e626be90f18972ec963bbed75101c7fbf4a88a6da2bc671b
8f1c51c4963c0bad6cf04444feb411d7
 shell

f321685342fa373c33eb9479176a086a1c56c90a1826a0aef3450809ffc01e5d
52137157fdf019145d7f524d1da884d7
elf

f38ab11c28e944536e00ca14954df5f4d08c1222811fef49baded5009bbbc9a2
ba02a964d08c2afe41963bf897d385e7
shell

e9e2e84ed423bfc8e82eb434cede5c9568ab44e7af410a85e5d5eb24b1e622e3
cbcda5c0dba07faced5f4641aab1e2cd
 elf shared-lib

d66bbbccd19587e67632585d0ac944e34e4d5fa2b9f3bb3f900f517c7bbf518b
2b13e6f7d9fafd2eca809bba4b5ea9a6
64bits elf shared-lib

2ea291aeb0905c31716fe5e39ff111724a3c461e3029830d2bfa77c1b3656fc0
568d1ebd8b6fb17744d3c70837e801b9
shell

8e3b92e49447a67ed32b3afadbc24c51975ff22acbd0cf8090b078c0a4a7b53d
33c3f807caea64293add29719596f156
 shell

609bbf4ccc2cb0fcbe0d5891eea7d97a05a0b29431c468bf3badd83fc4414578
71d78c97eb0735ec6152a6ff6725b9b2
tar-bundle gzip contains-elf

d596acc70426a16760a2b2cc78ca2cc65c5a23bb79316627c0b2e16489bf86c0
6d1cd68384de9839357a8be27894182b
 tar-bundle gzip

0fe1248ecab199bee383cef69f2de77d33b269ad1664127b366a4e745b1199c8
5b134e0a1a89a6c85f13e08e82ea35c3
64bits elf 

Continue reading


Hacking Facebook By Using PHP Script | Social Engineering Attack | LAN And WAN (Same Or Different Networks)


This Video is absolutely for Educational Purposes only, please don't do any illegal activity. If you do then I'm not responsible for your illegal activity. The purpose of this video is to show you How hackers can hack your social media by using their own local servers.

Basically these type of attacks  known as Social Engineering attacks or Phishing. Attacker just send the duplicate vulnerable HTML page to the victim, when victim enters any type of information to that vulnerable page it'll automatically received by the attacker.

Phishing is a form of fraud in which an attacker masquerades as a reputable entity or person in email or other communication channels. The attacker uses phishing emails to distribute malicious links or attachments that can perform a variety of functions, including the extraction of login credentials or account information from victims.

How phishing works 

Phishing attacks typically rely on social networking techniques applied to email or other electronic communication methods, including direct messages sent over social networks, SMS text messages and other instant messaging modes.

Phishers may use social engineering and other public sources of information, including social networks like LinkedIn, Facebook and Twitter, to gather background information about the victim's personal and work history, his interests, and his activities.

Hacking by PHP

As PHP is server side scripting language so first of all you have need to install a local server (WAMP, XAMPP or LAMPP) over your system. Because if there is no any server running on your system then you can't even run your PHP script. So if you wanna do a programming with PHP this is the first step to download and install a server from the Internet. You can easily download and install servers by watching my videos. Just visit my YouTube channel and watch there.



Hacking Facebook By Using PHP Script | Social Engineering Attack | You can perform this attack over LAN and WAN (Same or Different Networks)

Related articles


  1. Pentest Tools Download
  2. Hack Tools
  3. Underground Hacker Sites
  4. Black Hat Hacker Tools
  5. Pentest Tools List
  6. Blackhat Hacker Tools
  7. Hacker Tools Mac
  8. Hacking Tools For Windows Free Download
  9. Pentest Tools Nmap
  10. Hacking Tools
  11. Hacking Tools Usb
  12. Hack Tools
  13. Hacker Tools Linux
  14. Nsa Hacker Tools
  15. Hacking Tools For Games
  16. Hacker Tools Mac
  17. Hacker Tools Linux
  18. Hack Rom Tools
  19. Hack Tools For Windows
  20. Hacking Tools For Windows 7
  21. Top Pentest Tools
  22. Hacking Tools Mac
  23. Pentest Tools Port Scanner
  24. Hacking Tools Free Download
  25. Pentest Tools Website Vulnerability
  26. Hacking Tools For Kali Linux
  27. Pentest Tools For Ubuntu
  28. Hak5 Tools
  29. Pentest Tools For Android
  30. Hacking Tools Online
  31. Hacking App
  32. Hack Tool Apk
  33. Black Hat Hacker Tools
  34. Hack App
  35. Hacking Tools For Mac
  36. Wifi Hacker Tools For Windows
  37. Hacking Tools For Kali Linux
  38. Hack Tools For Mac
  39. Hacker Tools For Pc
  40. Ethical Hacker Tools
  41. Hacking Tools For Mac
  42. Hack Tools Mac
  43. Pentest Tools For Mac
  44. Hackrf Tools
  45. Install Pentest Tools Ubuntu
  46. How To Install Pentest Tools In Ubuntu
  47. Pentest Tools Open Source
  48. Hacking Tools
  49. Wifi Hacker Tools For Windows
  50. Hack Tools For Windows
  51. Tools Used For Hacking
  52. Hacks And Tools
  53. Hacking Tools Usb
  54. Pentest Automation Tools
  55. Hack Tools Online
  56. Pentest Tools Review
  57. Pentest Tools For Windows
  58. Pentest Tools List
  59. Hacking Tools For Kali Linux
  60. Hacker Tools Linux
  61. Wifi Hacker Tools For Windows
  62. Hack Tools Pc
  63. Hacking Tools Kit
  64. Pentest Tools Windows
  65. Hack Tool Apk
  66. Growth Hacker Tools
  67. Black Hat Hacker Tools
  68. Pentest Tools Url Fuzzer
  69. Android Hack Tools Github
  70. Hacking Tools Usb
  71. Pentest Recon Tools
  72. Hacking Tools Usb
  73. Pentest Tools Kali Linux
  74. Hack Tools Pc
  75. Hack Tools Mac
  76. Hacking Tools For Windows
  77. Hacker Tools Github
  78. Underground Hacker Sites
  79. Hacker Tools Online
  80. Pentest Tools Alternative
  81. What Are Hacking Tools
  82. Pentest Tools Android
  83. Hack Apps
  84. Growth Hacker Tools
  85. Hacker Hardware Tools
  86. Growth Hacker Tools
  87. Hack Tools Pc
  88. Hacking Tools For Windows
  89. Hacking Tools For Beginners
  90. Pentest Tools Linux
  91. Hacking Tools For Beginners
  92. Pentest Tools Android
  93. Pentest Tools Nmap
  94. Pentest Tools Windows
  95. Hacking App
  96. Hak5 Tools
  97. Hacking Tools Github
  98. Pentest Tools Download
  99. Hak5 Tools
  100. What Is Hacking Tools
  101. Pentest Tools Tcp Port Scanner
  102. Hacking Tools 2019
  103. Pentest Tools Alternative
  104. How To Hack
  105. Hacker
  106. Tools Used For Hacking
  107. Hacking Tools Hardware
  108. Hacks And Tools
  109. Hacker
  110. Hack App
  111. Pentest Tools Online
  112. Hack Rom Tools
  113. Pentest Recon Tools
  114. Hacker Tools Software
  115. Game Hacking
  116. Hacking Tools 2020
  117. Hacker Tools Github
  118. Pentest Tools Alternative
  119. Hak5 Tools
  120. Hack Tools Online
  121. Hacker Tools 2019
  122. Hacker Tools Windows
  123. Hacker Tools Free Download
  124. Tools 4 Hack
  125. Hack Tools Online
  126. Pentest Tools For Windows
  127. Wifi Hacker Tools For Windows
  128. World No 1 Hacker Software
  129. Hacker Tools Windows
  130. Hacking Tools And Software
  131. Pentest Box Tools Download
  132. Pentest Tools Tcp Port Scanner
  133. Hacking Tools 2020
  134. Easy Hack Tools
  135. Android Hack Tools Github
  136. Underground Hacker Sites
  137. Hack Tools 2019
  138. Android Hack Tools Github
  139. Hack Tools 2019
  140. Hacking Tools Online
  141. Hacking Tools For Mac
  142. Usb Pentest Tools
  143. Hacking Tools For Kali Linux
  144. Termux Hacking Tools 2019
  145. Game Hacking
  146. Pentest Tools Kali Linux