Get the latest tech news

The dangers of single line regular expressions


The Neonify challenge on Hack The Box is a small Sinatra(a Ruby web framework) app, that generates a glowing text of the submitted value:

The Neonify challenge on Hack The Box is a small Sinatra(a Ruby web framework) app, that generates a glowing text of the submitted value: If we can bypass the regular expression check, we can execute any ruby code in ERB. Besides that, try to avoid using user controller values at places where code can be executed.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of dangers

dangers

Photo of regular expressions

regular expressions

Photo of single line

single line

Related news:

News photo

Dangers of “decentralized” ID systems

News photo

Pope Francis, victim of AI, warns against its 'perverse' dangers

News photo

Supreme Court chief justice warns of dangers of AI in judicial work, suggests it is “always a bad idea” to cite non-existent court cases