• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ManageIQ / manageiq / 48410 / 6
61%
master: 63%

Build:
Build:
LAST BUILD BRANCH: kasparov
DEFAULT BRANCH: master
Ran 23 Nov 2016 06:05PM UTC
Files 450
Run time 22s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Nov 2016 05:57PM UTC coverage: 60.646%. Remained the same
2.3.1, GEM=pending

push

travis-ci

Fryguy
Merge branch '5.6.z/fix/miq-expression-regexp-vulnerability' into '5.6.z'

Sanitize regex expressions from /s and #{}s

Both REGULAR EXPRESSION MATCHES and REGULAR EXPRESSION DOES NOT MATCH
have a vulnerability whereby a regular expression can be terminated in
the first part of the string that gets eval'd, allowing any arbitrary
Ruby code to be run.

They are also vulnerable to interpolation, wherein any arbitrary Ruby
code can get executed.

Unfortunately it is not possible to run these values through the
existing `MiqExpression.re_escape` method, since it also escapes special
characters which are essential to the user's forming real regular
expressions through the UI.

Because we are currently supporting values with or without the actual
bona fide delimiters present, and also regular expressions with one
option (e.g. `/abc/i`), we have to code several paths to ensure that we
escape only unescaped forward slashes that are not part of the bona fide
regular expression literal syntax.

Addresses CVE-2016-7040
https://bugzilla.redhat.com/show_bug.cgi?id=1376878

See merge request !1045
(cherry picked from commit 92d5b5e8e)

13171 of 21718 relevant lines covered (60.65%)

153.46 hits per line

Source Files on job 48410.6 (2.3.1, GEM=pending)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 48410
  • Travis Job 48410.6
  • a1db5117 on github
  • Prev Job for 2.3.1, GEM=pending on euwe (#48332.6)
  • Next Job for 2.3.1, GEM=pending on euwe (#48630.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc