The vulnerability centers around unauthorized message previews during post creation. The primary entrypoint is the CreatePost API handler which processes user requests. The critical failure occurs when generating previews of existing messages without verifying if the user has permission to view them. The GetPost function (or equivalent) would be involved in retrieving the linked message content without proper access checks. While exact patch details are unavailable, the CVE description and Mattermost's architecture suggest these functions would handle the vulnerable workflow. Confidence is medium due to inference from vulnerability patterns rather than direct patch analysis.