+A method marked with [System.Web.Services.WebMethod] is an ASMX web service operation
+or, when it is a static method of a page, an ASP.NET page method. Any client that can reach the
+service can call it. A web method that changes data, such as one that transfers, withdraws,
+deposits, updates, removes, edits or deletes something, or that performs an administrative action,
+should check that the caller is allowed to do so.
+
+This query reports such a web method when it has no authorization check in its code, no
+authorization attribute that applies to it, and no <location> rule in a
+Web.config file that denies access to it. The standard query
+cs/web/missing-function-level-access-control does not consider web methods.
+
+The MVC and Web API Authorize attributes (System.Web.Mvc.AuthorizeAttribute
+and System.Web.Http.AuthorizeAttribute) are filters of their own pipelines. They do
+not run for a web method, so they do not protect it.
+
+Check that the caller is authenticated and authorized before changing data, for example with
+Context.User.Identity.IsAuthenticated or Context.User.IsInRole(...). Alternatively,
+deny access to unauthorized users with an authorization element in a
+<location> element of Web.config that covers the service.
+
+In the following example, any caller can transfer funds between arbitrary accounts: +
+ ++The method is fixed by checking that the caller is authenticated (and, ideally, owns the debited +account): +
+ +
+The following Web.config file denies anonymous users access to the service:
+