An interface method that can carry hundreds of password combinations in a single request, why can't it prevent login failure lock?
When discussing login brute-force protection, why is it often underestimated that an interface method can carry hundreds of password combinations in a single request? The problem is not the looseness of password verification, but that it allows batch parameters to be stuffed into a single call: the server executes each one individually, while the failure count on the defensive side progresses with the request. WordPress has been defaulting to enabling XML-RPC since version 3.5, and the switch on the interface has been removed later, leaving the batch method system.multicall exposed to the public for a long time.
The batch method reduces the brute-force cost to just a few requests
The original intention of system.multicall is to reduce round-trips: the client packs multiple calls into an array and sends it, the server executes them one by one and returns the results in one go. It saves time for normal users and request counts for attackers. The scale given by public information is straightforward, hundreds of passwords can be tried in a single command, and thousands of password combinations can be tested with just three or four HTTP requests.
The economic account is rewritten here. When submitted item by item, the attacker has to bear the cost of connection establishment and speed restriction, and the defender is also easier to see the anomaly at the connection layer; after packaging, the same guess measurement can be completed with a few requests, and the exposure surface is even lower.
The locking based on the number of failures cannot keep up with the number of credentials.
The scope of most locking strategies is the number of failure events: if a certain account or source address fails consecutively for several rounds, it will be locked for a period of time. It assumes a premise that only one set of credentials is carried in a single request. The batch method exactly breaks the premise, with hundreds of incorrect credentials grouped into a single call, the counter can only advance one step at most, and the threshold cannot keep up with the speed of guessing.
This entry must still be valid, the count needs to sink to the credential layer: failure counts are accumulated separately by username, the source dimension accumulates entries of suspicious credentials, not by the number of connections. The same principle applies to throttling, quotas are settled by the number of calls, otherwise a single batch request can exhaust the quota.
The same mechanism can also be used for amplification attacks
In addition to batch processing, such legacy interfaces often have methods that主动发起对外请求, pingback is an example. Attackers use the victim site as a pivot, causing it to send a large number of echo requests to the target, with the source being a real site, and the link looking completely normal in the eyes of defensive devices. Historically, there have been cases where about 2500 sites were turned into a botnet to launch denial-of-service attacks, with the effect coming from reflection and amplification: the attacked party sees a massive number of visits from normal websites, rather than a single attack source.
The cost for sites passively involved is that the outgoing bandwidth is fully utilized, the address is added to the blacklist, reputation is damaged, but not a single byte of data is lost. Blocking is not just to prevent number theft, but also to prevent becoming others' stepping stones.
Close or intercept: the levels and choices of interface blocking.
Whether to retain such an entry depends on whether there are any legitimate calling parties that depend on it. The most convenient way to completely shut down is to remove the endpoint at the routing layer or directly reject the relevant method name at the application entry, at the cost of the old remote publication and client integration failing together. When there is indeed a dependency, the more common practice is to narrow the public network capability surface, intercept by path, allow only specific sources, or remove batch methods from the allowed list, leaving only the necessary single calls.
At a higher level, in-app interception is more reliable because path rules are easily bypassed by case, encoding, and rewrite differences; the advantage of blocking at the gateway or rewrite layer is that it takes effect quickly, and it can stop the bleeding without the need to release a new version.Both ends need to be sealed to be considered closed. In comparison, the newer interface design tends to tighten the scope of capabilities: AnQiCMS carries backend authentication with JWT, the capabilities of the interface layer are based on public interfaces, and built-in protection against SQL injection and XSS is provided, it does not provide the legacy method of packaging hundreds of credentials for submission, but the difference between request counting and credential counting is still worth noting: the size of the attack surface is often more critical than the threshold adjustment is higher.
Common questions
Ask: Has the login lock been enabled, and do we still need to manage the legacy batch interfaces? Yes. The lock counts failed events, while the batch entry counts hundreds of error credentials as a single event, which is not on the same scale. First, confirm if there is a path on the site to package and submit credentials, then discuss how low the threshold should be adjusted.
Ask: Will directly closing it hurt the normal business? It depends on the caller. Integrations like remote releases and old clients may still depend on this protocol. The safe sequence is to first count the legitimate usage of related paths, then decide to completely close, allow by source, or only exclude batch methods.
Ask: Which one to choose, between the gateway layer and the application layer? It is not necessary to choose one or the other. The blocking of the gateway or rewrite layer can stop bleeding immediately without changing the code, and the rejection at the application layer does not depend on the consistency of the path writing, and the failure modes of the two are different. Only when both are set can the gap be reduced.
Ask: The amplified attack is aimed at others, why should the website be responsible? Because the jump board identity is passively undertaken: outgoing traffic, being blocked by the target, and being reported all fall on this server. Limiting the methods of initiating external requests to the necessary range is equivalent to removing yourself from the attack chain of others.