🇰🇷 한글 설명
Flarum 토론 플랫폼에서 첫 번째 게시물이 영구 삭제되었음에도 토론이 유지될 경우, REST API를 통해 권한이나 잠금 상태와 관계없이 새로운 답글을 작성할 수 있는 취약점입니다. 이 취약점은 이메일 인증을 받지 않은 사용자도 이용 가능하며, 스팸 게시물 작성이나 원치 않는 이메일 발송에 악용될 수 있습니다.
💡 쉬운 설명
게시판의 첫 글이 삭제되었을 때 시스템이 권한 확인을 제대로 하지 못하는 오류가 발생합니다. 이로 인해 글을 쓸 권한이 없는 사람도 몰래 답글을 달거나 스팸을 올릴 수 있습니다.
🇺🇸 원문 (English)
Flarum is a discussion platform for websites. If the first post of a discussion is permanently deleted but the discussion stays visible, any actor who can view the discussion is able to create a new reply via the REST API, no matter the reply permission or lock status. This includes users that don't have a validated email. Guests cannot successfully create a reply because the API will fail with a 500 error when the user ID 0 is inserted into the database. This happens because when the first post of a discussion is permanently deleted, the `first_post_id` attribute of the discussion becomes `null` which causes access control to be skipped for all new replies. Flarum automatically makes discussions with zero comments invisible so an additional condition for this vulnerability is that the discussion must have at least one approved reply so that `discussions.comment_count` is still above zero after the post deletion. This can open the discussion to uncontrolled spam or just unintentional replies if users still had their tab open before the vulnerable discussion was locked and then post a reply when they shouldn't be able to. In combination with the email notification settings, this could also be used as a way to send unsolicited emails. Versions between `v1.3.0` and `v1.6.3` are impacted. The vulnerability has been fixed and published as flarum/core v1.6.3. All communities running Flarum should upgrade as soon as possible. There are no known workarounds.
📍 영향받는 시스템
Flarum v1.3.0 ~ v1.6.3
⚔️ 공격 벡터
REST API를 사용하여 권한 검증을 우회하고 답글 생성 요청을 전송
🛡️ 대응 방법
Flarum core를 v1.6.3 이상 버전으로 즉시 업데이트
🔧 검증 코드
출력된 버전이 v1.6.3 미만(예: 1.3.0, 1.5.0 등)이면 취약한 상태입니다.
composer show flarum/core | grep 'versions'