Giter VIP home page Giter VIP logo

x-issues's Introduction

x-issues's People

Contributors

oberrich avatar

Watchers

 avatar

x-issues's Issues

Potential EoP in Windows clipboard libraries (MS15-097)

Note: This issue is raised across multiple projects, the latest version 🌱lives here.

Problem

Clipboard libraries usually naïvely call CloseClipboard without first impersonating the system's anonymous logon token. According to MS15-097 using CloseClipboard this way potentially allows an Escalation of Privilege (EoP) via the undocumented system call NtUserGetClipboardAccessToken.

This issue only affects users of your library that are incorrectly closing the clipboard from an elevated system process.

NB: Reporting of this vulnerability dates back to 2015 and I wasn't able to find any patches, only the advisory on the security bulletin. I assume this is just some small security issue that is not commonly known.

Related CVEs and information:

Related discussion on the issue

Solution

Users who run from an elevated system process should update their dependencies or consult their library authors for a patch.

Library authors should impersonate the system's anonymous logon token using ImpersonateAnonymousToken while calling CloseClipboard instead. This prevents users from "misusing" the API.

Refer to Chromium for a correct/safe implementation:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.