Mostafa Alrefai (@__the7th) header
Mostafa Alrefai (@__the7th) profile picture

All Thanks To My God - الحمد لله

Joined August 2022
Bug Hunting Harness Some people found it useful to test there agents with live vulnerable labs, so check these out: http://aspnet.testsparker[.]com http://rest.testsparker[.]com
2
21
743
Bug Hunting Harness One of the best live "Vulnerable Labs" to test the power and skills of your agent is -> http://php.testsparker[.]com It can help you improve your agent's performance better than PortSwigger Lab, which can give the agent hints to find bugs more easily
3
48
400
16,549
Mostafa Alrefai retweeted
Make sure you add guidance to your agent's system prompt to have him skip testing any endpoints he identifies as honeypots or homeport systems.
2
4
200
Bug Hunting Harness The new type of "Honeypots" which was created for autonomous bug hunting agents which can make you problems and waste your tokens This is a message from my agent and this was a Bug Bounty target *A honeypot is a system that works as a trap for attackers
2
1
5
788
Make sure you add guidance to your agent's system prompt to have him skip testing any endpoints he identifies as honeypots or homeport systems.
2
4
200
Bug Hunting Harness One of the best agent skills that you can use to write new Nuclei templates And to make sure it works for your target bug class, ask your agent to setup a local testing server and run the template against it *Credits to the author mcpmarket.com/tools/skills/n…
2
8
70
2,865
TRACE HTTP Verb in Bug Hunting It's very rare to find, but when you find the TRACE verb enabled in a web server, never skip searching for Information Disclosure, because the TRACE verb can disclose internal IP Addresses and internal HTTP headers sent by the reverse proxy
3
15
1,249
TTMG, I'm back for more... Tip: AI hacking is not just Prompt Injection, just fuzz the server for hidden paths...
4
3
82
3,139
🧵Bug Bounty Diaries ( D6 ) It's still a VDP, but the chain was EPIC => From CSTI (Client-Side Template Injection) to XSS Gadget + WAF Bypass => From XSS to CSP Bypass => From CSP Bypass to fetch requests => From fetch requests to Cookie hijacking
3
4
80
17,053
🧵Bug Bounty Diaries ( D5 ) Stored-XSS in the user's first and last name fields This was an old bug in a public bug bounty program, and it could be escalated to exfiltrate user cookies...
2
2
66
14,901
In reports like this, you should be able to deliver the attack to other users, so you should try to chain it with CSRF, or use forum comments to get an Account Takeover.
1
549
I wanted to add some information about Exploit 1. After testing the exploit on live targets and a local lab, I validated that the XSS payload will work only if it is a DOM-Based Open Redirect, and if it were a Server-Based Open Redirect, the browser will stop the XSS from running
🧵Bug Bounty Diaries ( D4 ) How to escalate an "Open Redirect" from P5 to P3 or P1 Yesterday, I found an Open Redirect in a public VDP, and I wanted to teach you the exploitation process that you should take before reporting the bug as a P5 ... thread...
2
27
2,455
🧵Bug Bounty Diaries ( D4 ) How to escalate an "Open Redirect" from P5 to P3 or P1 Yesterday, I found an Open Redirect in a public VDP, and I wanted to teach you the exploitation process that you should take before reporting the bug as a P5 ... thread...
5
29
1
265
30,805
🧵Bug Bounty Diaries ( D3 ) This was an EPIC hack... TTMG, In this report, I was able to combine 2 vulnerabilities to bypass the login page of an admin portal and log in as an admin, without any username or password Maybe more details in the future...
3
6
190
16,522
Sometimes, it just happens...
1
1
90
2,629
🧵Bug Bounty Diaries ( D2 ) Today, I found my first "Prototype Pollution" vulnerability in the wild, but it can't be a valid bug to be reported on its own, so when you find a PP, you should dig deeper to combine it with a gadget in order to build a valid report...
1
8
113
13,480
Mostafa Alrefai retweeted
Replying to @Hoesenbug
You send the payload in the parameters part or the fragment part of the URL, to be a part of the document.URL source
1
1
1
355
🧵The Bug Bounty Diaries... This is the first post of a New Series where I talk about bugs that I found in wild Bug Bounty Targets This is a short story about a DOM-Based XSS that I found in a Private Bug Bounty Program, but it was unexploitable due to modern browser mechanisms
2
6
90
13,149
DOM-Based XSS is all about (Source + Sink). In this case, the sink was `document.write` and the source was `document.URL` The problem is that the attack will only be valid if the payload was sent to the sink without URL encoding, as you can see the "alert box" in the screenshot.
1
4
929
Why can't we send the payload without URL-encoding? Because in modern browsers, when you send anything in the query part or the fragment part of the URL, the browser should URL-encode it automatically, and this will prevent the attack from being successful.
1
5
786