Patrowl Intel
Sign in
Back to feed

CVE-2015-9239

Published Sep 1, 2020

Summary

Regular Expression Denial of Service in ansi2html The `ansi2html` package is affected by a regular expression denial of service vulnerability when certain types of user input is passed in. ## Proof of concept ``` var ansi2html = require('ansi2html') var start = process.hrtime(); ansi2html("[1111111111111111111111;0000000000000000000000"); console.log(process.hrtime(start)); start = process.hrtime(); ansi2html("[1111111111111111111111;00000000000000000000000"); console.log(process.hrtime(start)); start = process.hrtime(); ansi2html("[1111111111111111111111;000000000000000000000000"); console.log(process.hrtime(start)); start = process.hrtime(); ansi2html("[1111111111111111111111;0000000000000000000000000000"); console.log(process.hrtime(start)); ``` Results of the above ``` 00:29:53-adam_baldwin~/tmp$ node test [ 0, 119615367 ] [ 0, 149934565 ] [ 0, 233325677 ] [ 3, 46582479 ] ``` ## Recommendation At the time of this writing, February 2018, all versions of `ansi2html` remain vulnerable, and the package has not been updated for 4 years. In order to use this package safely, it is necessary to avoid passing user input to the package, or to limit the size of the input string to a size with a parse time you find acceptable. Unfortunately, the match time grows at quite a small character count, so it is unlikely for it to both allow strings of a useful size while protecting against the denial of service attack. In the case that user input of significant length must be parsed by ansi2html, the best mitigation is to use an alternative module that is actively maintained and provides similar functionality. There are [multiple modules fitting this criteria available on npm.][available on npm](https://www.npmjs.com/search?q=ansi+html)

Affected

Weaknesses

CWE-400CWE-20

MITRE ATT&CK

Inferred

Where this vulnerability fits in an attack

Impact

Exploits & references 1 exploit · 3 references

Timeline

  1. PublishedSep 1, 2020

Potentially impacted assets

See if this affects your attack surface

Latest trending attack

Hightoday

Zammad - Unauthenticated Access to Realtime Agent & Chat Visitor Session Data

Zammad is an open-source web-based helpdesk and customer support ticketing system. It includes agent ticket overviews and an optional live chat feature for website visitors. GHSA-HWMJ-JRCP-HW9Q Zammad's realtime session handling did not reliably verify that a caller requesting pushed data was the owner of the session (CWE-367 time-of-check time-of-use race condition, CWE-863 incorrect authorization). An unauthenticated attacker over the network could read the data pushed to an agent's browser, including ticket overviews, user records with contact details, and activity streams with ticket article content. The agent only needs to have Zammad open. On installations with the chat feature enabled, an attacker could also read website visitors' chat conversations, including agent messages and names, and send messages as the visitor. The flaw is in a standard component, so no special configuration is required. Apart from writing into chat conversations, the access is read-only. Affected versions are Zammad up to and including 7.2.3, and 7.3.0. Fixed versions are 7.2.4 and 7.3.1. No CVE ID is assigned.

Take 15 minutes to discover the Patrowl EASM platform with our experts

The intelligence behind this page, applied to your own exposure: your assets discovered, matched to these signals, prioritised by the same score.

  • European Investment Bank
  • MGEN Solution
  • Forvis Mazars
  • Colas
  • Heetch
  • Xplor
This month’s verdictsPaste yours