Deteksi dan Analisis Serangan Scanning, XSS, serta SQL Injection
The text analyses a packet capture to detect scanning, XSS, and SQL injection attempts. It shows how to filter traffic in Wireshark to identify SYN scanning, a possible XSS request that likely failed, and a SQL injection attempt in a URL parameter.
Published on medium.com
Serangan siber seperti scanning, XSS, dan SQL Injection menjadi ancaman serius bagi keamanan jaringan. Untuk melindungi infrastruktur dari serangan ini, diperlukan kemampuan untuk mendeteksi dan menganalisis pola serangan dengan tepat.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the vulnerable application failed to properly validate or sanitise user input in URL parameters, allowing SQL commands and scripts to be injected.
Impact
The scanning could reveal open ports for further exploitation, the XSS attempt likely failed as the script was not reflected, and the SQL injection attempt could allow an attacker to manipulate the database if successful.
What the attacker needed
Access to the network traffic capture; Wireshark installed
How it was found
- Open the PCAP file in Wireshark.
- Apply a filter for TCP SYN packets without ACK to detect scanning.
- Use the Conversations view to see communication patterns.
- Filter HTTP GET requests containing 'XSS' to find XSS attempts.
- Check server responses for the XSS payload to see if it was reflected.
- Filter HTTP requests for SQL keywords to find SQL injection attempts.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a walkthrough of how to look at recorded network traffic to spot attacks. It uses a tool called Wireshark to filter packets and find signs of port scanning, cross-site scripting (injecting scripts into web pages), and SQL injection (inserting database commands into input). The text shows that the XSS attempt probably did not work because the server did not reflect the script back.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.