Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 35,959
    • Issues 35,959
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,293
    • Merge Requests 1,293
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #24415

Closed
Open
Opened Sep 28, 2018 by James Ritchey@jritcheyDeveloper

Too long wiki page's title causes various impact.

Link:          https://hackerone.com/reports/414096
By:            @8ayac

Details: Summary: I have discovered various impact caused by adding wiki page whose title is too long, which violates the Availability and Integrity of the system.

Description: Adding a wiki page whose title is too long has several impact.

Steps To Reproduce:

  1. Sign in to GitLab.
  2. Go to "http(s)://{GitLab host}/projects/new"
  3. Fill out "Project name" form with "testProject".
  4. Click "Create project" button.
  5. Go to "http(s)://{GitLab host}/{user id}/testProject/wikis/home?view=create".
  6. Fill out "Content" form with "poc".
  7. Click "Create page" button.
  8. Click "New page" button.
  9. Fill out "Page slug" form with "foo".
  10. Click "Create page" button.
  11. Fill out "Content" form with "poc".
  12. Click "Create page" button.
  13. Go to "http(s)://{GitLab host}/{user id}/testProject/wikis/foo/edit".
  14. Fill out "Title" form with 'A'*50000.
  15. Click "Save changes" button.

Result: A page titled AAAAAAAAAAA... is added. (The response to step 15 is 502 Bad Gateway.)

Supporting Material

I attached a movie.

Impact

  • Users can not clone this repository with git clone.
  • Once an attacker added the page whose title is too long, t can not be deleted on the client side.
  • The user can not view the history of the added page.

Mitigation

I think the following is effective.

  • Limit the number of characters in the title of wiki pages.
  • Create a page like a list of wiki pages, so that you can delete pages from there.
Assignee
Assign to
12.9
Milestone
12.9 (Past due)
Assign milestone
Time tracking
Jan 23, 2019
Due date
Jan 23, 2019
Reference: gitlab-org/gitlab#24415