kcve.ai취약점 정보 · 내 자산 확인

CVE-2021-21276 Privilege escalation in Polr

Polr의 권한 상승

설명

Polr is an open source URL shortener. in Polr before version 2.3.0, a vulnerability in the setup process allows attackers to gain admin access to site instances, even if they do not possess an existing account. This vulnerability exists regardless of users' settings. If an attacker crafts a request with specific cookie headers to the /setup/finish endpoint, they may be able to obtain admin privileges on the instance. This is caused by a loose comparison (==) in SetupController that is susceptible to attack. The project has been patched to ensure that a strict comparison (===) is used to verify the setup key, and that /setup/finish verifies that no users table exists before performing any migrations or provisioning any new accounts. This is fixed in version 2.3.0. Users can patch this vulnerability without upgrading by adding abort(404) to the very first line of finishSetup in SetupController.php.

폴은 오픈 소스 URL 단축기입니다. 폴은 버전 2.3.0 이전부터, 설치 프로세스의 취약점으로 인해 공격자가 기존 계정을 가지고 있지 않더라도 사이트 인스턴스에 대한 관리자 액세스를 얻을 수 있습니다. 이 취약점은 사용자의 설정에 관계없이 존재합니다. 공격자가 /setup/finish 엔드포인트에 특정 쿠키 헤더를 가진 요청을 작성하면 인스턴스에서 관리자 권한을 얻을 수 있습니다. 이것은 SetupController에서 공격에 취약한 느슨한 비교 (==)에 의해 발생합니다. 이 프로젝트는 엄격한 비교 (===)가 설정 키를 확인하는 데 사용되고 /setup/finish가 마이그레이션을 수행하거나 새 계정을 프로비저닝하기 전에 사용자 테이블이 존재하지 않는지 확인하기 위해 패치되었습니다. 이 문제는 버전 2.3.0에서 해결되었습니다. 사용자는 setupController.php의 finishSetup 첫 줄에 abort(404)를 추가하여 업그레이드하지 않고 이 취약점을 패치할 수 있습니다.

영향 받는 제품 제품 1개

  • cydrobolt

    polr

    해결 버전 있음

    영향 받는 버전

    • 2.3.0 미만

    해결 버전

    • 2.3.0 이상

참고 자료 4건

‹ 목록

점검 지원 범위 문의

도입 문의