Notice Score pending
Trilogy Ruby library SQL injection flaw
Web apps using Trilogy for their database can have data read or changed.
- First seen
—
Products
Mitigation
Update Trilogy to 2.13.2 or later. If you cannot upgrade, enforce the encoding of all strings passed to Trilogy#escape and Trilogy#query.
Summary
Trilogy#escape in the Trilogy Ruby library produces unsafe output for Shift_JIS, Windows-31J, Big5, GBK and GB18030 strings, allowing SQL injection. Ruby on Rails and other Rack apps using the Trilogy adapter are likely affected.
Affected when
- Rails or Rack app connecting to the database through the Trilogy adapter
- Attacker can influence the encoding of a string the app escapes
- Connection encoding set to sjis, cp932, big5, gbk or gb18030
Incidents by product: trilogy