This repository contains discussions for issues raised across multiple projects.
x-issues's Introduction
x-issues's People
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:
- Exploit DB: Microsoft Windows - NtUserGetClipboardAccessToken Token Leak (MS15-023)
- MSFT: Security Bulletin MS15-097 / Critical
- NVD: CVE-2015-2527
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.