Mercredi 21 Octobre 2026 11:27:28 GMT+02:00

Netcrook

AccueilManifeste
Actualités
Techcrook
Geocrook
WikicrookÉquipeAppContact
EnglishItaliano

WIKICROOK

Regex-based map

An NGINX configuration feature that uses regular expressions to choose or transform values during request handling.

A regex-based map is an NGINX configuration feature that selects or rewrites a value by matching it against a regular expression. The map can also expose captured groups, which later directives may reuse while building request-time strings.

This matters in security because it moves logic from application code into the web server’s configuration layer, where subtle data-flow mistakes can create memory-safety or injection risks. If attacker-controlled request data reaches a regex-based map and its captures are later expanded into another expression, the server may process unexpected lengths or content. In real defenses, engineers look for these map blocks, trace included config files, and check whether captured values are reused in string assembly. The feature is useful, but it deserves the same threat modeling as code because its behavior can shape exposure to crashes, data leakage, or exploitation paths.

← index WIKICROOK