Exploit databaseDownload repository ZIP
GH-4439bf80e665ac1b6dbc45d1b31c2ac4
ginsudev/wdbfontoverwrite
Sources for CVE-2022-46689
15 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files21
ginsudev/wdbfontoverwriteRevision 51acb70bed0b
- ↑..Parent directory
- Assets.xcassets/
- MainInterface/
- Preview Content/
- PreviewFonts/
- Progress/
- RepackedFonts/
- BrotliPadding.swift
- FontMap.swift
- Info.plist
- OverwriteFontImpl.swift
- WDBFontOverwrite-Bridging-Header.h
- WDBFontOverwriteApp.swift
- WDBImportCustomFontPickerViewControllerDelegate.swift
- _UIKeyboardCache.h
- _UIKeyboardCache.m
- grant_full_disk_access.h
- grant_full_disk_access.m
- helpers.h
- helpers.m
- vm_unaligned_copy_switch_race.c
- vm_unaligned_copy_switch_race.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WDBFontOverwrite/vm_unaligned_copy_switch_race.h
Text · 562 bytes#pragma once
#include <stdlib.h>
#include <stdbool.h>
/// Uses CVE-2022-46689 to overwrite `overwrite_length` bytes of `file_to_overwrite` with `overwrite_data`, starting from `file_offset`.
/// `page_to_overwrite` should be a page aligned `PROT_READ` `MAP_SHARED` region. ``
/// `overwrite_length` must be less than or equal to `PAGE_SIZE`.
/// Returns `true` if the overwrite succeeded, and `false` if the device is not vulnerable.
bool unaligned_copy_switch_race(int file_to_overwrite, off_t file_offset, const void* overwrite_data, size_t overwrite_length);