Is there a reason you went the asmx route and not with WCF?
I think without seeing the application nobody can help you finding out
if your application is vulnerable to attacks like CSRF.
A good point to start is checking XSS first since an attacker have to
perform the request against your web service as
trusted user. In ASP.Net Mvc 3 unique CSRF tokens are used to make sure
the request was made is unique. Since you want use JavaScript with Asp.Net
Web Services you won't have this advantage but you could generate and
deliver CSRF token challenges with the JavaScript the user loads with
the page
assuming that you are not caching anything.
I doubt that web services are not vulnerable to CSRF since the request
that is performed against it comes from within the users browser which
has the session cookie,
the same ip and the referrer can be spoofed easily. How should the web
service know that this specific request did not came from the user but
from an other script
within the page?
Like i said, without seeing the source code (at least from the website
where the JavaScript is embedded) nobody(at least not me) could give you
an answer on that.
Regards,
Robert
> While developing TeamMentor <http://teammentor.github.com> I implemented a
> _______________________________________________
> Owasp-dotnet mailing list
> Owasp-...@lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/owasp-dotnet
--
Robert Tezli
Voigstraße 39
10247 Berlin
Germany
Mail : tezli....@live.de
Phone: +4916094989708
Web : pixills.com
Why should content-type header be considered good enough CSRF defense ?
Many sites have incorrectly configured crossdomain.xml files (allow-access-from domain="*") - thus making cross domain requests with arbitrary header / header values from swf files a trivial attack vector.
Also, even if the cross domain policy files are correctly configured, I have seen the 307 redirect attack - as explained here - working well till very recently across browsers.
Regards,
Jaideep
_______________________________________________
Owasp-o2-platform mailing list
Owasp-o2...@lists.owasp.org
https://lists.owasp.org/mailman/listinfo/owasp-o2-platform