WordPress.WP.AlternativeFunctions.rand_seeding_mt_srand
rand seeding mt srand
The plugin uses a random function that may not be appropriate for the task.
Why It Shows Up
The scan found functions such as `rand()`, `mt_rand()`, `srand()`, or `mt_srand()`.
Why It Matters
General random functions are not suitable for security-sensitive tokens and manual seeding can reduce randomness.
How to Fix
- Use `wp_rand()` for ordinary WordPress randomness.
- Use PHP cryptographic randomness for security-sensitive tokens.
- Avoid manual random seeding unless there is a narrow, documented reason.
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #1 | Efí Bank | 17 | 886 | 553 | 400 | Exception output is not escaped | ||
| #2 | wpForo Forum | 17 | 4,048 | 2,922 | 20k+ | Unsafe printing function | ||
| #3 | Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution | 19 | 1,218 | 901 | 100k+ | Exception output is not escaped | ||
| #4 | Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More | 21 | 2,572 | 1,277 | 1m+ | Output is not escaped | ||
| #5 | Mooberry Book Manager | 21 | 1,040 | 399 | 1k+ | Text Domain Mismatch | ||
| #6 | Content Egg – Affiliate Product Importer & Price Comparison | 23 | 1,300 | 1,287 | 10k+ | Non-prefixed global variable | ||
| #7 | Ezoic | 23 | 441 | 519 | 10k+ | Output is not escaped | ||
| #8 | Locatoraid Store Locator | 23 | 318 | 645 | 1k+ | Non-prefixed global variable | ||
| #9 | MyWorks Sync for WooCommerce & QuickBooks Online | 23 | 2,292 | 9,101 | 5k+ | Non-prefixed global variable | ||
| #10 | Next Active Directory Integration | 23 | 683 | 284 | 2k+ | Exception output is not escaped | ||
| #11 | WHMCS Bridge | 23 | 247 | 472 | 4k+ | Nonce verification recommended | ||
| #12 | Appointment Booking Calendar | 25 | 327 | 1,055 | 1k+ | Non-prefixed global variable | ||
| #13 | Booking Calendar Contact Form | 25 | 371 | 884 | 500 | Input is not validated | ||
| #14 | Contact Form Email | 25 | 409 | 898 | 9k+ | Non-prefixed global variable | ||
| #15 | CP Contact Form with PayPal | 25 | 466 | 936 | 800 | Unsafe printing function | ||
| #16 | WPBruiser {no- Captcha anti-Spam} | 25 | 646 | 259 | 10k+ | Non Singular String Literal Domain | ||
| #17 | Plover Kit – Blocks, Patterns, Responsive Layout and Gutenberg Editor Enhancements | 25 | 688 | 1,383 | 3k+ | Non-prefixed global variable | ||
| #18 | Iptanus File Upload | 25 | 517 | 1,337 | 10k+ | Non-prefixed function | ||
| #19 | WP Time Slots Booking Form | 25 | 439 | 1,137 | 1k+ | Non-prefixed global variable | ||
| #20 | Polls CP | 27 | 399 | 500 | 400 | Output is not escaped | ||
| #21 | WPS Bidouille | 28 | 472 | 215 | 10k+ | Output is not escaped | ||
| #22 | ActiveDEMAND | 32 | 157 | 161 | 1k+ | Output is not escaped | ||
| #23 | Brozzme DB Prefix & Tools Addons | 35 | 24 | 42 | 10k+ | Request data is not unslashed | ||
| #24 | Website Pop-up Builder by BDOW! (formerly Sumo): Pop-ups + forms for email opt-ins and lead generation | 37 | 42 | 33 | 10k+ | Output is not escaped | ||
| #25 | Simple LDAP Login | 38 | 65 | 33 | 1k+ | Output is not escaped | ||
| #26 | RSS Feed Retriever | 61 | 23 | 8 | 7k+ | wp function not compatible with requires wp | ||
| #27 | Text Expander | 67 | 50 | 15 | 600 | wp function not compatible with requires wp |