Hi Simmon,
I tried both the <iframe> src=
http://www.site.com </iframe> & <script> alert (document.cookie) </script> as well for the vulnerable parameter. However, When i scan with ZAP by right clicking that URL and run the active scan no vulnerabilities are reported by tool. But i can find through manual testing. Is there a way, i can include my custom strings to the active scan rule directly? I am able to do the same through a file for Fuzzing, but the there i need to manually select the string and run the fuzzing. So i am checking the options.
For example the request is;
POST http://<IP>/createRole.dwr HTTP/1.1
Host: 10.1.1.1:Port
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Content-Type: text/plain; charset=UTF-8
Referer: Referrer URL
Content-Length: 9391
Cookie: JSESSIONID=HQAABFDGgkAUjK9X5McEIiNo
Body:
-------
callCount=1
windowName=
c0-scriptName=RoleUIService
c0-methodName=createRole
c0-id=0
c0-e1=string:%3Ciframe%3E%20src%3Dhttp%3A%2F%
2Fwww.site.com%20%3C%2Fiframe%3E
c0-e2=string:lk%0A%09%09%09%09%09%09%09
c0-e3=string:0
page=%2Fsdp%2Fui%2Fhome%2Froles%3Faction%3Dcreate
httpSessionId=HQAABFDGgkAUjK9X5McEIiNo
scriptSessionId=F301817DE699FA7C1BABEB9F27EAAF76
HttpSessionID/ScriptSessionID are anti csrf tokens in the request body.
You said "
The parameters contain the data for the 'original' request that is available to test" - Does this mean, i need to copy the values of into these respective fields in the script? Default template presently has {{request.url}}. Should i remove this and replace with the URL in the original request?
"This is the parameter you should change to be your attack." - In my request c0-e1 is vulnerable. So, do i need to mention that? or actual XSS script?
When i tried with Resending request / Fuzzing / Manual request editor - the XSS works. But when going through Zest - I get 403 forbidden error and when i open the URL in Browser in ZAP, it says - Unable to find the script session ID which DWR is expecting i believe.
Thanks for the help...
Sekhar