Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • core
  • Classes
  • Utility
  • GeneralUtility.php
Find file BlameHistoryPermalink
  • Torben Hansen's avatar
    [SECURITY] Prevent urls starting with // to be used for redirects · a1b09aaa
    Torben Hansen authored Mar 16, 2021 and Oliver Hader's avatar Oliver Hader committed Mar 16, 2021
    A missing check in GeneralUtility::sanitizeLocalUrl() resulted in
    an url starting with `//` to be considered as a local url.
    
    This change ensures, that urls starting with `//` are not considered
    local. Corresponding unit tests are fixed and extended, since they
    need a full environment to process correctly.
    
    Resolves: #92891
    Releases: master, 11.1, 10.4, 9.5
    Change-Id: I41eb16776742b3e0d2cffd064dd0408e4faa7c78
    Security-Bulletin: TYPO3-CORE-SA-2021-001
    Security-References: CVE-2021-21338
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68412
    
    
    Tested-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
    Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
    a1b09aaa