Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Patch for CVE-2019-10721 #205

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

Closed
irbishop wants to merge 1 commit into BlogEngine:master from irbishop:CVE-2019-10721
Closed

Patch for CVE-2019-10721 #205

irbishop wants to merge 1 commit into BlogEngine:master from irbishop:CVE-2019-10721

Conversation

@irbishop
Copy link
Contributor

@irbishop irbishop commented Apr 21, 2019

Copy link
Contributor Author

irbishop commented Apr 21, 2019 via email

Whoops, good catch. I put in the wrong index. The last condition should have been [1].
...
On Sun, Apr 21, 2019, 02:26 David Jade ***@***.***> wrote: ***@***.**** commented on this pull request. ------------------------------ In BlogEngine/BlogEngine.Core/Services/Security/Security.cs <#205 (comment)>: > @@ -204,6 +201,18 @@ public static bool AuthenticateUser(string username, string password, bool remem return false; } + private static bool IsLocalUrl(string url) + { + if (string.IsNullOrEmpty(url)) + { + return false; + } + else + { + return ((url[0] == '/' && (url.Length == 1 || (url[1] != '/' && url[1] != '\\'))) || (url.Length > 1 && url[0] == '~' && url[0] == '/')); There seems to be a condition here that can never be true - this part: (url.Length > 1 && url[0] == '~' && url[0] == '/') — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#205 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AABHJ7JOLJAG25ZMEYDGOILPRQQMTANCNFSM4HHKU53A> .

Copy link
Contributor Author

Typo, will fix and resend

@irbishop irbishop deleted the CVE-2019-10721 branch April 21, 2019 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@davidjade davidjade davidjade left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /