HeskAPI v1.1.5: stored XSS fix, Confirm button and HESK 3.8 support
Software & Apps

HeskAPI v1.1.5: stored XSS fix, Confirm button and HESK 3.8 support

| | 2 min read
Share: Twitter Facebook LinkedIn

HeskAPI v1.1.5, Tuxxin's REST API add-on for HESK help desks, is out. Desks that take API tickets from a public contact form and run a release before v1.1.4 should upgrade, because those releases are open to stored cross-site scripting (XSS).

Before v1.1.4, the API stored the name, subject, message and custom-field text of a ticket exactly as received. HESK prints stored ticket text without escaping it, so HTML in a contact-form submission ran in the admin ticket view. v1.1.4 stores that text the way HESK's own form does: HTML-escaped, with line breaks kept. The README in the download lists SQL that finds and fixes tickets created before the upgrade.

Integrations that sent HTML in the name, subject or message now see the tags as text. Send plain text; the API keeps line breaks.

Other changes in v1.1.3 to v1.1.5

  • Error handling (v1.1.5). Requests that ended in HTTP 500 or an empty response, such as a parameter sent as an array or an emoji in a held submission, now get the API's normal JSON reply. An unreachable database returns 503 with a JSON body.
  • Confirm button (v1.1.4). The emailed confirmation link opens a page with a Confirm button, and the ticket is created when the submitter presses it, so mail-security scanners that open every link in an email leave bot submissions unconfirmed. An optional CAPTCHA on that page uses the one set in HESK.
  • Fixes (v1.1.4). create_ticket stores values for the category's active custom fields, which earlier releases dropped, and "@domain" email bans apply to the API.
  • HESK 3.8 (v1.1.3). Tested on HESK 3.8.0 and 3.7.12. create_ticket honors HESK 3.8's allowed customer email domains.

Release notes for every version, including the Spam Queue, 6-digit code verification and Tool Kit Auto-Close added in v1.1.1 and v1.1.2, are on the HeskAPI changelog.

HeskAPI is built and sold by Tuxxin LLC and is not affiliated with hesk.com.

Share: X Facebook LinkedIn