<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HVergara</id>
	<title>Elvis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HVergara"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/HVergara"/>
	<updated>2026-09-10T19:51:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13671</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13671"/>
		<updated>2024-01-07T04:16:25Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)&amp;lt;ref name=&amp;quot;Software Security&amp;quot;/&amp;gt; under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;/&amp;gt;, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Security Scanner for Web Applications:&#039;&#039;&#039;&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It is equipped with various modules including:&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Detection:&#039;&#039;&#039;&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;/&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;/&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Encrypted Connection (HTTPS):&#039;&#039;&#039; To set up an encrypted connection, it is necessary to create an SSL/TLS certificate with a FQDN (Fully Qualified Domain Name) for the web application. This ensures that data transmission is secure and the server only responds to encrypted requests directed to this specific domain name.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Web Application IP:&#039;&#039;&#039; It is also important to ensure that the web application does not respond to HTTP requests directed specifically to its IP address. This serves as an additional security measure by preventing the application from being accessible via unencrypted HTTP connections.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Modify a Linux File to Prevent HTTP Responses to a Specific IP Address&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 10: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13670</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13670"/>
		<updated>2024-01-07T04:14:22Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Resolution and Re-Testing: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)&amp;lt;ref name=&amp;quot;Software Security&amp;quot;/&amp;gt; under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;/&amp;gt;, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;/&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;/&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Encrypted Connection (HTTPS):&#039;&#039;&#039; To set up an encrypted connection, it is necessary to create an SSL/TLS certificate with a FQDN (Fully Qualified Domain Name) for the web application. This ensures that data transmission is secure and the server only responds to encrypted requests directed to this specific domain name.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Web Application IP:&#039;&#039;&#039; It is also important to ensure that the web application does not respond to HTTP requests directed specifically to its IP address. This serves as an additional security measure by preventing the application from being accessible via unencrypted HTTP connections.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Modify a Linux File to Prevent HTTP Responses to a Specific IP Address&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 10: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Resolution_and_re-testing_-_Web_Applucation_IP_A.jpg&amp;diff=13669</id>
		<title>File:Resolution and re-testing - Web Applucation IP A.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Resolution_and_re-testing_-_Web_Applucation_IP_A.jpg&amp;diff=13669"/>
		<updated>2024-01-07T04:12:28Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13668</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13668"/>
		<updated>2024-01-07T04:12:11Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)&amp;lt;ref name=&amp;quot;Software Security&amp;quot;/&amp;gt; under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;/&amp;gt;, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;/&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;/&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Encrypted Connection (HTTPS):&#039;&#039;&#039; To set up an encrypted connection, it is necessary&lt;br /&gt;
to create an SSL/TLS certificate with a FQDN (Fully Qualified Domain Name)&lt;br /&gt;
for the web application. This ensures that data transmission is secure and the server&lt;br /&gt;
only responds to encrypted requests directed to this specific domain name.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Web Application IP:&#039;&#039;&#039; It is also important to ensure that the web application does&lt;br /&gt;
not respond to HTTP requests directed specifically to its IP address. This serves as&lt;br /&gt;
an additional security measure by preventing the application from being accessible via&lt;br /&gt;
unencrypted HTTP connections.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13667</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13667"/>
		<updated>2024-01-07T04:10:57Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)&amp;lt;ref name=&amp;quot;Software Security&amp;quot;/&amp;gt; under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;/&amp;gt;, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;/&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;/&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Encrypted Connection (HTTPS):&#039;&#039;&#039; To set up an encrypted connection, it is necessary&lt;br /&gt;
to create an SSL/TLS certificate with a FQDN (Fully Qualified Domain Name)&lt;br /&gt;
for the web application. This ensures that data transmission is secure and the server&lt;br /&gt;
only responds to encrypted requests directed to this specific domain name.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13666</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13666"/>
		<updated>2024-01-07T04:09:59Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)&amp;lt;ref name=&amp;quot;Software Security&amp;quot;/&amp;gt; under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;/&amp;gt;, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;/&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;/&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Encrypted Connection (HTTPS):&#039;&#039;&#039; To set up an encrypted connection, it is necessary&lt;br /&gt;
to create an SSL/TLS certificate with a FQDN (Fully Qualified Domain Name)&lt;br /&gt;
for the web application. This ensures that data transmission is secure and the server&lt;br /&gt;
only responds to encrypted requests directed to this specific domain name.&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13665</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13665"/>
		<updated>2024-01-07T04:06:26Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)&amp;lt;ref name=&amp;quot;Software Security&amp;quot;/&amp;gt; under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;/&amp;gt;, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;/&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;/&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|600px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13664</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13664"/>
		<updated>2024-01-07T04:04:15Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)&amp;lt;ref name=&amp;quot;Software Security&amp;quot;/&amp;gt; under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;/&amp;gt;, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;/&amp;gt;:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;/&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13663</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13663"/>
		<updated>2024-01-07T04:02:58Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt; is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)[3] under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy[4], intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:[5]&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as[6]:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications[7].&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13662</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13662"/>
		<updated>2024-01-07T04:02:48Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)[[&amp;lt;ref name=&amp;quot;getting-started&amp;quot;/&amp;gt;]] is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)[3] under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy[4], intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:[5]&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as[6]:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications[7].&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13661</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13661"/>
		<updated>2024-01-07T04:02:29Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)[2] is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)[3] under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy[4], intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:[5]&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as[6]:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications[7].&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;getting-started&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Software Security&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Manipulator-in-the-middle proxy&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;ZAPPROXY. Features.&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP. Attacks.&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Penetration testing methodologies&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13660</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13660"/>
		<updated>2024-01-07T03:58:31Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)[2] is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)[3] under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy[4], intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:[5]&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as[6]:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications[7].&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;OWASP. https://www.zaproxy.org/getting-started/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;Software Security Project. Welcoming zap to the software security project. https://softwaresecurityproject.org/blog/welcoming-zap-to-the-software-security-project/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;OWASP. Manipulator-in-the-middle proxy. https://www.zaproxy.org/docs/desktop/start/features/intercept/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;ZAPPROXY. Features. https://www.zaproxy.org/docs/desktop/start/features/, ZAPPROXY. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;OWASP. Attacks. https://owasp.org/www-community/attacks/, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;OWASP. Penetration testing methodologies. https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies#penetration-testing-execution-standard, 2023. access 09.12.2023.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13659</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13659"/>
		<updated>2024-01-07T03:55:52Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP)[2] is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP)[3] under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy[4], intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:[5]&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities such as[6]:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods and is tailored to personalized security applications[7].&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13658</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13658"/>
		<updated>2024-01-07T03:45:26Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13657</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13657"/>
		<updated>2024-01-07T03:42:48Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13656</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13656"/>
		<updated>2024-01-07T03:42:22Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
OWASP ZAP represents a comprehensive open-source software that can be used to identify various security vulnerabilities in web applications. It is characterized by a multitude of directly applicable functions that enable effective use. However, it is advisable to use this tool with care. When properly applied, OWASP ZAP can contribute to the detection and remediation of security risks in both active and in-development web applications.&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13655</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13655"/>
		<updated>2024-01-07T03:40:56Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13654</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13654"/>
		<updated>2024-01-07T03:40:30Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):===&lt;br /&gt;
In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===&lt;br /&gt;
In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13653</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13653"/>
		<updated>2024-01-07T03:40:03Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:===&lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===Intelligence Gathering:===&lt;br /&gt;
Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
===Threat Modeling(Option):=== In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
===Vulnerability Analysis:===&lt;br /&gt;
In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
===Exploitation:===&lt;br /&gt;
In this step, we demonstrate an exploitation using login data. We employ Wireshark to monitor the data traffic between the user and the web application. In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
===Post Exploitation:===&lt;br /&gt;
In this step, we investigate what information can be accessed after an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Reporting:===&lt;br /&gt;
In this step, we will create a report to compare the state before and after addressing the vulnerability. OWASP ZAP also offers the capability to generate such a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
===Resolution and Re-Testing:===  In this step, we propose various methods to eliminate the identified vulnerability. When focusing on our specific example, it is important to consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13652</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13652"/>
		<updated>2024-01-07T03:37:31Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039;=== &lt;br /&gt;
In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13651</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13651"/>
		<updated>2024-01-07T03:37:12Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039;=== In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13650</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13650"/>
		<updated>2024-01-07T03:36:41Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13649</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13649"/>
		<updated>2024-01-07T03:35:11Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13648</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13648"/>
		<updated>2024-01-07T03:34:08Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===Pre-engagement Interactions:=== In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039;=== Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13647</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13647"/>
		<updated>2024-01-07T03:33:45Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039;=== In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039;=== Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13646</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13646"/>
		<updated>2024-01-07T03:32:55Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13645</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13645"/>
		<updated>2024-01-07T03:32:24Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
Figure 8: Automated scan with encrypted connection&lt;br /&gt;
&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
Figure 9: Results of Automated Scan After Encrypted Connection&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13644</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13644"/>
		<updated>2024-01-07T03:31:19Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
[[File:Post_Explotation_-_A.jpg|400px]]&lt;br /&gt;
Figure 5: Wireshark Packet Analysis for Login Password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
Figure 6: Vulnerability Report in OWASP ZAP&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
Figure 7: OWASP ZAP Report&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
[[File:Resolution_and_re-testing_-_HTTPS_A.jpg|400px]]&lt;br /&gt;
[[File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13643</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13643"/>
		<updated>2024-01-07T03:29:46Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Post Exploitation:&#039;&#039;&#039; In this step, we investigate what information can be accessed after&lt;br /&gt;
an attack, especially when unencrypted packets have been transmitted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reporting:&#039;&#039;&#039; In this step, we will create a report to compare the state before and after&lt;br /&gt;
addressing the vulnerability. OWASP ZAP also offers the capability to generate such&lt;br /&gt;
a report.&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Reporting_-_C.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Resolution and Re-Testing:&#039;&#039;&#039;  In this step, we propose various methods to eliminate&lt;br /&gt;
the identified vulnerability. When focusing on our specific example, it is important to&lt;br /&gt;
consider two key configurations that need to be addressed:&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13642</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13642"/>
		<updated>2024-01-07T03:27:22Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13641</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13641"/>
		<updated>2024-01-07T03:27:10Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13640</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13640"/>
		<updated>2024-01-07T03:26:57Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13639</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13639"/>
		<updated>2024-01-07T03:26:31Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|thumb|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13638</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13638"/>
		<updated>2024-01-07T03:25:34Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 1: OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Figure 2: Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Vulnerability Analysis:&#039;&#039;&#039; In this step, we analyze the data and vulnerabilities identified during our automated scan. As mentioned in the Threat Modeling phase, our focus is on HTTP vulnerabilities. We assess the severity and potential impacts of these security flaws to develop appropriate countermeasures.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exploitation:&#039;&#039;&#039; In this step, we demonstrate an exploitation using login data. We employ&lt;br /&gt;
Wireshark to monitor the data traffic between the user and the web application.&lt;br /&gt;
In this scenario, Wireshark acts as a Man-in-the-Middle tool, enabling us to analyze&lt;br /&gt;
the transmitted packets and uncover vulnerabilities in the data transmission.&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_A.jpg|thumb|OWASP ZAP &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
Figure 3: Objective for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
[[File:Explotation_-_B.jpg|thumb|OWASP ZAP &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
Figure 4: Wireshark Packet Capture for Password Sniffing&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13637</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13637"/>
		<updated>2024-01-07T03:23:08Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13636</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13636"/>
		<updated>2024-01-07T03:22:30Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
//OWASP ZAP Automated Scan//&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13635</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13635"/>
		<updated>2024-01-07T03:21:49Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
/*OWASP ZAP Automated Scan*/&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13634</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13634"/>
		<updated>2024-01-07T03:21:35Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
//OWASP ZAP Automated Scan//&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13633</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13633"/>
		<updated>2024-01-07T03:20:49Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
OWASP ZAP Automated Scan&lt;br /&gt;
&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13632</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13632"/>
		<updated>2024-01-07T03:20:33Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|400px]]&lt;br /&gt;
OWASP ZAP Automated Scan&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|400px]]&lt;br /&gt;
Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13631</id>
		<title>OWASP Zed Attack Proxy</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=OWASP_Zed_Attack_Proxy&amp;diff=13631"/>
		<updated>2024-01-07T03:19:22Z</updated>

		<summary type="html">&lt;p&gt;HVergara: /* Execution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:OWASP ZAP.png|thumb| OWASP ZAP https://www.zaproxy.org/ &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The Open Web Application Security Project(OWASP) is a non-profit organization&lt;br /&gt;
aimed at improving the security of applications and services on the internet. Another&lt;br /&gt;
important tool provided by OWASP is the ”OWASP Top 10” list. This list summarizes&lt;br /&gt;
the ten most common security risks for web applications and is regularly updated based&lt;br /&gt;
on data and trends in web application security. Based on the ”OWASP Top Ten,”&lt;br /&gt;
various tools are developed to enhance security in the digital world, and one of these&lt;br /&gt;
is OWASP ZAP.&lt;br /&gt;
&lt;br /&gt;
==Getting to Know OWASP ZAP==&lt;br /&gt;
OWASP Zed Attack Proxy (ZAP) is a comprehensive, open-source penetration&lt;br /&gt;
testing tool developed by The Software Security Project (SSP) under&lt;br /&gt;
OWASP. Specifically designed for assessing web application security, it functions as&lt;br /&gt;
a “Manipulator-in-the-middle proxy, intercepting and modifying messages&lt;br /&gt;
between the tester’s browser and the application.&lt;br /&gt;
ZAP is versatile and user-friendly, catering to both security novices and specialists.&lt;br /&gt;
It is compatible with major operating systems and Docker, offering both manual and&lt;br /&gt;
automated testing capabilities to identify and report vulnerabilities in web applications.&lt;br /&gt;
The tool features a detailed desktop UI, a powerful API, command-line functionality,&lt;br /&gt;
and is extensible through various add-ons available in the ZAP Marketplace.&lt;br /&gt;
Emphasizing responsible use, ZAP simulates real attacks, underscoring the importance&lt;br /&gt;
of using it only on applications for which the user has testing permission. Its&lt;br /&gt;
multifunctionality, adaptability, and focus on responsible usage make ZAP a valuable&lt;br /&gt;
asset in enhancing web application security.&lt;br /&gt;
&lt;br /&gt;
===Features===&lt;br /&gt;
OWASP ZAP is a comprehensive tool in web application security, equipped with various modules to detect and analyze a wide range of vulnerabilities. With features like multiple attack modes and structured scanning, it plays a crucial role in identifying and mitigating potential threats in web applications.&lt;br /&gt;
&lt;br /&gt;
Security Scanner for Web Applications:&lt;br /&gt;
OWASP ZAP is utilized as a security scanner specifically designed for web applications.&lt;br /&gt;
Various Modules:&lt;br /&gt;
&lt;br /&gt;
It is equipped with various modules including:&lt;br /&gt;
* &#039;&#039;&#039;Proxy:&#039;&#039;&#039; For capturing data&lt;br /&gt;
* &#039;&#039;&#039;Fuzzer:&#039;&#039;&#039; For identifying vulnerabilities&lt;br /&gt;
* &#039;&#039;&#039;Spider:&#039;&#039;&#039; For discovering web applications&lt;br /&gt;
* &#039;&#039;&#039;Scanner:&#039;&#039;&#039; For conducting active and passive attacks&lt;br /&gt;
* &#039;&#039;&#039;Dictionary Method:&#039;&#039;&#039; To access files&lt;br /&gt;
&lt;br /&gt;
Vulnerability Detection:&lt;br /&gt;
OWASP ZAP is capable of detecting medium and low-level risks and vulnerabilities&lt;br /&gt;
such as:&lt;br /&gt;
* &#039;&#039;&#039;URL rewriting&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Application error disclosure&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;X Frame Options (XFO) header not set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SQL injection&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cross-Site Request Forgery (CSRF)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Cookie without secure flag and HTTP only&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Scanning Process:&#039;&#039;&#039;&lt;br /&gt;
The scanning process in ZAP includes giving the Host Name/Host ID as input,&lt;br /&gt;
carrying out the scanning to identify flaws, discovering vulnerabilities, performing risk&lt;br /&gt;
analysis, and concluding the results.&lt;br /&gt;
Modes of Attack:&lt;br /&gt;
ZAP offers four modes of attack: standard mode, protected mode, attack mode,&lt;br /&gt;
and safe mode. These modes are used to identify vulnerabilities on the web.&lt;br /&gt;
Risk Analysis:&lt;br /&gt;
After identifying vulnerabilities, the process of risk analysis is performed, categorizing&lt;br /&gt;
risks into low, high, informational, and medium.&lt;br /&gt;
&lt;br /&gt;
==Methodology==&lt;br /&gt;
There are various ways to analyze risks in OWASP. This is based on standard methods&lt;br /&gt;
and is tailored to personalized security applications.&lt;br /&gt;
* &#039;&#039;&#039;Step 1: Pre-engagement Interactions:&#039;&#039;&#039; This phase involves establishing clear goals, scope, and legal boundaries for the security assessment or penetration test, often through contractual agreements.&lt;br /&gt;
* &#039;&#039;&#039;Step 2: Intelligence Gathering:&#039;&#039;&#039; The focus here is on collecting as much information as possible about the target system or organization, which could include public data or internal details.&lt;br /&gt;
* &#039;&#039;&#039;Step 3: Threat Modeling:&#039;&#039;&#039; In this optional step, potential threats and attack vectors are identified and assessed, helping to prioritize the focus areas for the assessment.&lt;br /&gt;
* &#039;&#039;&#039;Step 4: Vulnerability Analysis:&#039;&#039;&#039; This critical phase involves identifying and analyzing vulnerabilities within the system, which could be prone to exploitation.&lt;br /&gt;
* &#039;&#039;&#039;Step 5: Exploitation:&#039;&#039;&#039; This step involves attempting to exploit the identified vulnerabilities, demonstrating the potential impact of a breach.&lt;br /&gt;
* &#039;&#039;&#039;Step 6: Post Exploitation:&#039;&#039;&#039; After successful exploitation, this phase includes actions like collecting sensitive data, maintaining access, and understanding the extent of the compromise.&lt;br /&gt;
* &#039;&#039;&#039;Step 7: Reporting:&#039;&#039;&#039; A comprehensive report is prepared, detailing vulnerabilities, the methods used to exploit them, and the potential impact, providing valuable insights for mitigation.&lt;br /&gt;
* &#039;&#039;&#039;Step 8: Resolution and Re-Testing:&#039;&#039;&#039; Finally, the focus shifts to resolving the identified vulnerabilities and then re-testing to ensure that the fixes are effective and the vulnerabilities are fully addressed.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
In this phase, we apply our findings in a practical manner. We conduct controlled attacks&lt;br /&gt;
on identified vulnerabilities, such as exploiting the HTTP security flaw, within a&lt;br /&gt;
safe testing environment. This allows us to observe the system’s response without disrupting&lt;br /&gt;
normal operations. Every step is documented to develop effective improvement&lt;br /&gt;
strategies.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pre-engagement Interactions:&#039;&#039;&#039; In this phase, we define our target, which in this case is our web application at http://192.168.0.5 We plan to conduct an automatic scan to identify potential vulnerabilities. Normally, during this phase, we would also set a specific time for the scan or attack. This allows us to create an official document confirming that both teams agree to conduct the vulnerability scan. However, since this is merely a test environment of our own web application, adhering to the official process is not necessary in this instance&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Intelligence Gathering:&#039;&#039;&#039; Our target is http://192.168.0.5, an internal DNS server. This server plays a key role in our network as it is responsible for mapping domain names to IP addresses. Our task in the intelligence gathering phase includes collecting details about the server configuration and identifying potential vulnerabilities to pinpoint possible security risks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Threat Modeling(Option):&#039;&#039;&#039; In this step, we conduct a scan focused exclusively on HTTP vulnerabilities. The main issue here is that the connection via HTTP is unencrypted, which means that all traffic, including sensitive information such as login credentials and passwords, can potentially be intercepted and read. This vulnerability makes the system particularly susceptible to Man-in-the-Middle attacks.&lt;br /&gt;
[[File:Threat_Modeling(option)_-_A.jpg|thumb|OWASP ZAP &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
OWASP ZAP Automated Scan&lt;br /&gt;
[[File:Threat_Modeling(option)_-_B.jpg|thumb|OWASP ZAP &amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;/&amp;gt;]]&lt;br /&gt;
Vulnerability Scan Results&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;OWASP ZAP&amp;quot;&amp;gt;https://www.zaproxy.org/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg&amp;diff=13630</id>
		<title>File:Resolution and re-testing - Web Applucation IP C.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Resolution_and_re-testing_-_Web_Applucation_IP_C.jpg&amp;diff=13630"/>
		<updated>2024-01-07T03:18:23Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Resolution_and_re-testing_-_HTTPS_A.jpg&amp;diff=13629</id>
		<title>File:Resolution and re-testing - HTTPS A.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Resolution_and_re-testing_-_HTTPS_A.jpg&amp;diff=13629"/>
		<updated>2024-01-07T03:15:51Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Reporting_-_C.jpg&amp;diff=13628</id>
		<title>File:Reporting - C.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Reporting_-_C.jpg&amp;diff=13628"/>
		<updated>2024-01-07T03:15:20Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Reporting_-_A.jpg&amp;diff=13627</id>
		<title>File:Reporting - A.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Reporting_-_A.jpg&amp;diff=13627"/>
		<updated>2024-01-07T03:14:59Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Post_Explotation_-_A.jpg&amp;diff=13626</id>
		<title>File:Post Explotation - A.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Post_Explotation_-_A.jpg&amp;diff=13626"/>
		<updated>2024-01-07T03:14:28Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Explotation_-_B.jpg&amp;diff=13625</id>
		<title>File:Explotation - B.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Explotation_-_B.jpg&amp;diff=13625"/>
		<updated>2024-01-07T03:13:49Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Explotation_-_A.jpg&amp;diff=13624</id>
		<title>File:Explotation - A.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Explotation_-_A.jpg&amp;diff=13624"/>
		<updated>2024-01-07T03:13:13Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Threat_Modeling(option)_-_B.jpg&amp;diff=13623</id>
		<title>File:Threat Modeling(option) - B.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Threat_Modeling(option)_-_B.jpg&amp;diff=13623"/>
		<updated>2024-01-07T03:12:49Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Threat_Modeling(option)_-_A.jpg&amp;diff=13622</id>
		<title>File:Threat Modeling(option) - A.jpg</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Threat_Modeling(option)_-_A.jpg&amp;diff=13622"/>
		<updated>2024-01-07T03:12:19Z</updated>

		<summary type="html">&lt;p&gt;HVergara: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HVergara</name></author>
	</entry>
</feed>