Try a small test on your own quote form today: submit a file that ends in .pdf but contains something else, then try filling in the same form twenty times within a minute. If the system quietly accepts both, your form may be collecting buyers' technical drawings while leaving the same door open to everyone else. This post is a defensive checklist for RFQ and quote forms on export websites. We covered the wider framework in export website technical infrastructure for global reach; here we focus only on the form and the journey of an uploaded file.
The list is numbered so you can walk through it item by item with a developer or your hosting provider. Each item briefly covers why it matters and how to check it.

Why quote forms are a target
On B2B export websites, the quote form is almost the only place where a visitor leaves data on the site. The buyer types product codes, quantities and delivery terms, and often attaches a technical drawing, specification PDF or sample photo. These files are valuable to the sales team, but from the server's point of view they are external data of unknown content being written into your system.
From an attacker's perspective, a form is attractive for a few reasons:
- The upload field: left unchecked, it is the shortest route to placing an executable file on the server.
- The notification email: the email the form sends is a channel your team trusts, and a malicious attachment rides in on that trust.
- Automated submissions: bots can fill the form with spam, phishing links or enough requests to strain the server.
- Collected personal data: a store of names, emails, phone numbers and company details becomes a serious reputational problem if it leaks.
The items below are grouped around these four risks. Numbering runs from start to finish, so you can tell your team plainly that "item 7 is still open".
File acceptance rules
1. Narrow the allowed types
Start by asking your sales team which files buyers actually send. For most industrial exporters the list is short: PDF, common image formats (JPG, PNG), perhaps drawing files such as DWG, DXF or STEP, and one spreadsheet format. Define this as an allowlist: write down only what is accepted instead of keeping a list of banned extensions. A blocklist always forgets something; an allowlist rejects by default.
Check: try submitting a .php, .html, .svg, .js or extension-less file through the form. All of them should be rejected. Note SVG separately: it looks like an image but can carry scripts, so leave it off the list unless you genuinely need it.
2. Verify the type from content
The extension and the MIME type sent by the browser are both values the user can change. On the server, detect the real type by reading the first bytes of the file, its file signature, and compare it with the declared extension. If they do not match, reject the file. For images, an extra step is to open the file with an image library and re-save it; this largely strips extra data hidden inside the image and lets you drop metadata such as location information.
A common mistake is validating only with JavaScript in the browser. Client-side checks are for user experience; the security check must always be repeated on the server.
3. Set size and count limits
Set a maximum size per file and a separate limit on the number of files per submission. The right values depend on your products: a drawing PDF and a high-resolution sample photo are not the same size. What matters is that the limit is consistent across three layers: in the form itself (early warning for the user), in the application code and in the web server or reverse proxy configuration. If only the application enforces the limit, a huge file is rejected after it has already been fully uploaded, and the resources have already been spent.
Also write the message the buyer sees when the limit is exceeded. A clear line such as "The file is too large, please compress it or share a link" keeps the buyer from abandoning the form.
4. Regenerate the file name
Do not write the user's file name to disk as it is. Directory traversal sequences such as "../", special characters or very long names can cause unexpected behaviour. Store the file under a randomly generated identifier (a UUID, for example) and keep the original name only as a text field in the database. Two files with the same name then never overwrite each other, and the file's location cannot be guessed.
Storage and access
5. Store outside the web root
Uploaded files should not sit in the publicly served directory of the site. On classic shared hosting it is common for an "uploads" folder to live under the web root; if the server is misconfigured, an uploaded script can then be executed directly. Write files to a directory outside the web root or to a separate storage service, and serve reads through an application endpoint that checks authentication.
On WordPress sites, check separately where your form plugin writes files. The steps in WordPress plugin risks and update management on plugin choice and update discipline apply here too.
6. Object storage and expiring links
A cleaner approach is to keep files in an object storage service (such as an S3-compatible bucket) with private access. When the sales team wants to open a file, the application generates a signed link that is valid only for a short time. The bucket should be closed to public listing, write permission should belong only to the form application, and read permission only to authorised users.
Check: open the direct address of a stored file in a browser that is not logged in. Access should be denied. Review the bucket's public access settings against your provider's current documentation; interfaces and default values change over time.
7. Define a retention period
Decide how long drawings and personal details are kept after the quote process closes, and enforce it technically. Most storage services offer lifecycle rules that delete old objects automatically. What the retention period should be is a legal question; this post is not KVKK, GDPR or other legal advice, so set the period with your legal adviser. The technical principle is simple: a file you no longer keep cannot leak.
Malware scanning
8. Quarantine new uploads
Instead of placing an uploaded file directly where the sales team can reach it, write it first to a separate quarantine area. Until the scan completes with a clean result, the file stays unavailable for download. This flow can run in the background without slowing the submission: the buyer sees "your request has been received" immediately, and the file becomes available a few seconds or minutes later.
9. Route by scan result
For scanning you can use an open-source antivirus engine, a scanning service from your cloud provider or a third-party API. Whichever you choose, define three outcomes: clean (the file is released), suspicious (the file stays in quarantine and a responsible person is notified) and scan failed (the file is not released and the scan is retried). The third outcome is often forgotten; treating a file as "clean by default" when the scanner is unreachable means the protection is switched off entirely.

10. Watch for active content
PDFs and office documents can carry macros, embedded scripts or external links. An antivirus scan catches some of these, but there is no guarantee it catches all of them. Consider two complementary measures: the sales team opens files in an up-to-date viewer with macros disabled, and where possible the first view happens in an in-browser preview. Give the team one short rule: if a document from the quote form asks you to "enable content", do not open it and report it.
Spam and bot protection
11. Add invisible verification
Wearing out a foreign buyer with hard puzzles is an easy way to lose genuine requests. Use layered, mostly invisible methods instead: a hidden trap field the user never sees (a honeypot), a check on the time between the form loading and being submitted, and, where needed, a bot verification service such as Cloudflare Turnstile or reCAPTCHA. These services may process personal data and use cookies; review how they should appear in your privacy notice with your legal adviser. Check the official documentation for their current behaviour.
Always validate the verification result on the server. Trusting a "verified" flag sent by the browser gives the same result as not checking at all.
12. Apply rate limiting
Cap the number of submissions from the same IP address or session within a short period. The cap should sit at a level a real buyer never reaches but an automated tool quickly exceeds. You can enforce it in the application, on the web server or at the CDN or firewall layer; the most efficient place is usually the edge, where a request can be stopped before it reaches your server. A stricter limit on the upload endpoint than on text submissions makes sense, because uploads cost both bandwidth and scanning.
When the limit is hit, show the user a clear message and log the event. Those logs are often the first signal that an attack has started.
13. Validate fields on the server
Text fields need validation too, not just files. The format of the email field, the length of the phone field, a numeric quantity and a reasonable length for free-text fields should all be checked on the server. If form data is later passed to a CRM, a dashboard or an email, output escaping must happen at every destination; otherwise HTML or script typed into a field may run inside the sales team's dashboard. For spam filtering and error tracking when sending data onward, the steps in routing quote requests from a web form to your CRM complete this item.
Notification emails
14. Keep attachments out of email
Many form plugins attach the uploaded file to the notification email by default. That means an unscanned file goes straight into employees' inboxes. The safer approach is to send only a summary of the request and a link to the dashboard. The file is then opened from the dashboard by a logged-in user, after the scan result is clean.
A second benefit is that personal data and confidential drawings are not copied across mail servers, backups and mobile devices.
15. Limit data in notifications
Check what goes into the subject line and body of the notification. Pasting the buyer's free text into the email as it is can let phishing links reach your team under the label "request from our website". Convert links to non-clickable text, use a fixed sender address on your own domain and keep the reply-to address in a separate field. Correct email authentication records for your domain (SPF, DKIM, DMARC) help keep these notifications out of spam folders and make forged notifications easier to spot.
Personal data and logs
16. Keep access logs
Record who viewed which request and file, and when. Every dashboard user should sign in with their own account; a single shared "sales" login is a weak point for both security and accountability. Where possible, require two-factor authentication.
17. Collect only what you need
Ask why each field on the form exists. Information you do not need to prepare a quote remains a burden that has to be stored and protected. Privacy notices, consent and international data transfers require legal assessment; the notes here are technical good practice and are not a legal opinion under KVKK, GDPR or any other regulation.
Quick audit table
| Item | Simple test | Expected result |
|---|---|---|
| 1–2. Type validation | Submit a file with a changed extension | The server rejects it |
| 3. Size limit | Submit a file above the limit | The upload stops early with a clear message |
| 4. File name | Submit with a long name containing special characters | Stored under a random identifier |
| 5–6. Storage | Open the file address without a session | Access is denied |
| 8–9. Scanning | Submit the standard antivirus test file | The file stays in quarantine and a notification is sent |
| 11–12. Bots and rate | Submit the form repeatedly in a short time | Requests are stopped after a set number |
| 14. Notification | Submit a request with an attachment | No attachment in the email, only a dashboard link |
| 16. Logs | Open a file in the dashboard | The access log shows user and time |
The standard antivirus test file is harmless and designed for scanning engines to recognise; still, run the test in a test environment first rather than on the live site. To try changes before they go live, use the approach in developing in a staging environment without breaking the live site.
Regular testing and incident readiness
This list is not a one-off task to complete and forget. Rerun the tests in the table whenever the form plugin is updated, the hosting changes or a new field is added to the form. A short quarterly audit in the calendar helps you notice settings that drift quietly over time.
Accepting that something may still go wrong is part of being prepared. If you suspect a malicious file came in through the form or that the site has been compromised, knowing in advance what to do in the first hours determines how far the damage spreads. A step-by-step plan for that situation is in hacked website recovery: a plan for the first 24 hours. A few form-specific notes worth adding to that plan:
- Have a switch or setting ready that can temporarily disable the form endpoint.
- Make sure the list of files in quarantine and storage can be exported.
- Keep an up-to-date list of the addresses that receive notifications and of dashboard users.
- Show an alternative contact channel on the page, such as a direct sales email address, so buyers are not lost while the form is offline.
As a final check, ask yourself: if it turned out tomorrow morning that a drawing a buyer sent was actually malicious, could you say within ten minutes where that file sits on your site, who opened it and where else it was copied?




No comments yet
Leave a Comment