Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lnkContactToApplicationSolution更新bug #28

Closed
annProg opened this issue Aug 8, 2016 · 0 comments
Closed

lnkContactToApplicationSolution更新bug #28

annProg opened this issue Aug 8, 2016 · 0 comments

Comments

@annProg
Copy link
Collaborator

annProg commented Aug 8, 2016

DoCheckToWrite函数

            $myContactId = UserRights::GetContactId();
            $thisContactId = $this->Get('contact_id');

            if ($myContactId != $thisContactId && !UserRights::IsAdministrator()){
                $this->m_aCheckIssues[] = Dict::Format("Class:lnkContactToApplicationSolution/Error:CanOnlyAddLinkForYourself", $thisContactName);
            }

有漏洞,用户可以把其他人的关联更改为自己的关联,$this->Get('')获取的是当前form的值,不是数据库中的值.

简单的处理办法是不允许更新链接类,只允许增加和删除链接。

@annProg annProg closed this as completed in 9087c61 Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant