arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21459cs.CRcs.FL
收藏

由回溯引用引发的正则表达式拒绝服务

Regular Expression Denial of Service Induced by Backreferences

Stony Brook University(石溪大学);Purdue University(普渡大学);Google(谷歌)

Yichen Liu, Berk Çakar, Aman Agrawal, Minseok Seo, James C. Davis, Dongyoon Lee

AI总结:

本文研究了由回溯引用引发的正则表达式拒绝服务漏洞,提出双阶段记忆自动机模型,并发现45个新漏洞。

摘要:

本文首次系统研究了带有回溯引用的正则表达式(REwB)中的拒绝服务漏洞。我们引入了双阶段记忆自动机(2PMFA),这是一种能够精确捕捉REwB语义的自动机模型。利用此模型,我们推导出在回溯引用导致超线性回溯运行时间的必要条件,即使在sink歧义线性的情况下——现有检测器报告无漏洞的 regime。基于这些条件,我们识别出三种漏洞模式,开发了检测和攻击构造算法,并在实践中验证了它们。使用Snort入侵检测规则集,我们的评估发现了45个此前未知的REwB漏洞,具有二次或更差的运行时间。我们进一步展示了对Snort的实践利用,包括通过0.6-1.2秒减慢规则评估时间以及通过触发PCRE的匹配限制来绕过警报。

英文摘要:

This paper presents the first systematic study of denial-of-service vulnerabilities in Regular Expressions with Backreferences (REwB). We introduce the Two-Phase Memory Automaton (2PMFA), an automaton model that precisely captures REwB semantics. Using this model, we derive necessary conditions under which backreferences induce super-linear backtracking runtime, even when sink ambiguity is linear -- a regime where existing detectors report no vulnerability. Based on these conditions, we identify three vulnerability patterns, develop detection and attack-construction algorithms, and validate them in practice. Using the Snort intrusion detection ruleset, our evaluation identifies 45 previously unknown REwB vulnerabilities with quadratic or worse runtime. We further demonstrate practical exploits against Snort, including slowing rule evaluation by 0.6-1.2 seconds and bypassing alerts by triggering PCRE's matching limit.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑