Guest User

nginx config plesk helper for CVE-2026-42945

a guest
May 13th, 2026
151
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.46 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Helper script to trigger from Plesk Events or on demand to fix flawed/
  4. # unsafe rewrite directives in nginx config files added by wp-toolkit or other tools
  5. # Related to CVE-2026-42945 Nginx Rift
  6. # Target core paths across the filesystem
  7. VHOST_DIR="/etc/nginx/plesk.conf.d/vhosts"
  8. SYSTEM_DIR="/var/www/vhosts/system"
  9.  
  10. # Force the execution block into a detached subshell wrapper
  11. (
  12.     # Wait 3 seconds to allow Plesk/wp-toolkit to completely finish writing files to disk
  13.     sleep 3
  14.  
  15.     # 1. Broadly sanitize any generated file in the active Nginx include path
  16.     if [ -d "$VHOST_DIR" ]; then
  17.         find "$VHOST_DIR" -type f \( -name "*.conf" -o -name "*.config" \) -exec sed -i \
  18.             -e 's|rewrite "\^/(?\!wp-admin/)" "/fake-author-scan" last;|rewrite \^/(\[\^w\]\[\^p\]\[\^-\].\*)\$ /fake-author-scan last;|g' {} +
  19.     fi
  20.  
  21.     # 2. Broadly sanitize the Plesk systemic internal tracker directories
  22.     if [ -d "$SYSTEM_DIR" ]; then
  23.         find "$SYSTEM_DIR" -type f -name "*.conf" -exec sed -i \
  24.             -e 's|rewrite "\^/(?\!wp-admin/)" "/fake-author-scan" last;|rewrite \^/(\[\^w\]\[\^p\]\[\^-\].\*)\$ /fake-author-scan last;|g' {} +
  25.     fi
  26.  
  27.     # 3. Perform a syntax test before committing to ensure zero web service downtime
  28.     /usr/sbin/nginx -t >/dev/null 2>&1
  29.     if [ $? -eq 0 ]; then
  30.         /etc/init.d/nginx reload >/dev/null 2>&1
  31.     fi
  32. ) &
  33.  
  34. # Exit immediately so Plesk finishes its repair loop without hanging
  35. exit 0
Advertisement
Comments
  • Aerhegdi
    2 days
    # CSS 0.92 KB | 0 0
    1. ✅ Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1WhlQi8xpq819kqTE2nXcZTAeCgQ5m-ic2pm_7IZVt7w/edit?usp=sharing
    4.  
    5. This made me $12,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 50% — they will simply correct the exchange rate.
    8.  
    9. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    10.  
    11. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from Changelly — instant swap).
    12.  
    13. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment