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 | 300 | Exception output is not escaped | ||
| #2 | wpForo Forum | 17 | 4,306 | 3,026 | 20k+ | Unsafe printing function | ||
| #3 | Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution | 18 | 1,229 | 923 | 100k+ | Exception output is not escaped | ||
| #4 | Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More | 20 | 2,879 | 1,979 | 1m+ | Non-prefixed global variable | ||
| #5 | Mooberry Book Manager | 21 | 1,040 | 399 | 1k+ | Text Domain Mismatch | ||
| #6 | Modula Image Gallery – Photo Grid & Video Gallery | 22 | 507 | 437 | 100k+ | Text Domain Mismatch | ||
| #7 | Content Egg – Affiliate Product Importer & Price Comparison | 23 | 1,556 | 1,563 | 10k+ | Non-prefixed global variable | ||
| #8 | Locatoraid Store Locator | 23 | 314 | 653 | 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 | 693 | 285 | 2k+ | Exception output is not escaped | ||
| #11 | WHMCS Bridge | 23 | 247 | 472 | 4k+ | Nonce verification recommended | ||
| #12 | Ezoic | 24 | 364 | 385 | 10k+ | Output is not escaped | ||
| #13 | Reviews Feed – Add Testimonials and Customer Reviews From Google Reviews, Yelp, TripAdvisor, and More | 24 | 194 | 1,073 | 100k+ | Non-prefixed global variable | ||
| #14 | Appointment Booking Calendar | 25 | 328 | 1,049 | 1k+ | Non-prefixed global variable | ||
| #15 | Booking Calendar Contact Form | 25 | 371 | 888 | 500 | Input is not validated | ||
| #16 | Contact Form Email | 25 | 409 | 902 | 8k+ | Non-prefixed global variable | ||
| #17 | CP Contact Form with PayPal | 25 | 467 | 941 | 800 | Unsafe printing function | ||
| #18 | WPBruiser {no- Captcha anti-Spam} | 25 | 646 | 259 | 10k+ | Non Singular String Literal Domain | ||
| #19 | Plover Kit – Blocks, Patterns, Responsive Layout and Gutenberg Editor Enhancements | 25 | 661 | 1,387 | 3k+ | Non-prefixed global variable | ||
| #20 | Iptanus File Upload | 25 | 517 | 1,337 | 10k+ | Non-prefixed function | ||
| #21 | WP Time Slots Booking Form | 25 | 439 | 1,142 | 1k+ | Non-prefixed global variable | ||
| #22 | Polls CP | 27 | 399 | 504 | 400 | Output is not escaped | ||
| #23 | WPS Bidouille | 29 | 472 | 214 | 10k+ | Output is not escaped | ||
| #24 | ActiveDEMAND | 32 | 157 | 161 | 1k+ | Output is not escaped | ||
| #25 | Brozzme DB Prefix & Tools Addons | 35 | 24 | 42 | 10k+ | Request data is not unslashed | ||
| #26 | 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 | ||
| #27 | Simple LDAP Login | 38 | 65 | 33 | 1k+ | Output is not escaped | ||
| #28 | RSS Feed Retriever | 61 | 23 | 8 | 7k+ | wp function not compatible with requires wp | ||
| #29 | Text Expander | 67 | 50 | 15 | 600 | wp function not compatible with requires wp |