Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #30250
Closed
Open
Created Mar 29, 2017 by Brian Neel@briannContributor

HackerOne report: Issue export to CSV vulnerable to command execution in Microsoft Excel

We received this HackerOne report about exported CSV being used to execute arbitrary commands inside Excel:

Summary

GitLab allows users to export issues as a .csv file. By injecting a payload into an issue title an attacker could exfiltrate data or execute code on the target machine. For instance, by naming an issue =cmd|' /C calc'!A0 I am able to open up calc.exe on Windows.

Steps to reproduce

  1. Create an issue with =cmd|' /C calc'!A0 as the title;
  2. Export all issues (The file is sent as an email attachment);
  3. Open the .csv file on a Windows machine.

Result: calc.exe pops up.

Fix

Prefix =, +, - and @ symbols with a ' in issues when exporting them to a .csv file.

If you require any further information, feel free to contact me.

Assignee
Assign to
Time tracking