{"id":4140,"date":"2021-07-28T14:28:45","date_gmt":"2021-07-28T12:28:45","guid":{"rendered":"https:\/\/betterqa.co\/?p=4140"},"modified":"2026-10-18T11:50:00","modified_gmt":"2026-10-18T09:50:00","slug":"cheat-sheet-guide-for-qa-file-upload-testing","status":"publish","type":"post","link":"https:\/\/betterqa.co\/cheat-sheet-guide-for-qa-file-upload-testing\/","title":{"rendered":"Cheat Sheet Guide for QA: File Upload Testing in 11 steps"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4140\" class=\"elementor elementor-4140\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-274cc94 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"274cc94\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6c4a7f4\" data-id=\"6c4a7f4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-06e1a22 elementor-widget elementor-widget-html\" data-id=\"06e1a22\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- BetterQA Article - File Upload Testing in 11 Steps -->\n<!-- Post ID: 4140 -->\n<!-- Blueprint Design System V2 - Full Inline CSS for Local Preview & Elementor -->\n\n<link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.5.1\/css\/all.min.css\" \/>\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Jost:wght@400;500;600;700&family=Roboto:wght@300;400;500&family=IBM+Plex+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n\n<style>\n:root {\n    --purple: #9152DE;\n    --deep: #5F29A1;\n    --blue: #204782;\n    --paper: #DDE9E9;\n    --paper-dark: #c9dada;\n    --ink: #1a1a1a;\n    --ink-light: #4a4a5a;\n    --white: #ffffff;\n    --danger: #c62828;\n    --warning: #ef6c00;\n    --success: #2e7d32;\n}\n\n\/* Base Article Styles *\/\n.bqa-article {\n    font-family: 'Roboto', sans-serif;\n    color: var(--ink);\n    line-height: 1.7;\n    background: var(--paper);\n    position: relative;\n}\n\n\/* Blueprint grid background *\/\n.bqa-article::before {\n    content: '';\n    position: fixed;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    background-image:\n        linear-gradient(rgba(145, 82, 222, 0.03) 1px, transparent 1px),\n        linear-gradient(90deg, rgba(145, 82, 222, 0.03) 1px, transparent 1px);\n    background-size: 20px 20px;\n    pointer-events: none;\n    z-index: 0;\n}\n\n.bqa-article-section {\n    position: relative;\n    z-index: 1;\n    padding: 60px 24px;\n}\n\n.bqa-article-section.alt-bg {\n    background: rgba(255, 255, 255, 0.5);\n}\n\n.bqa-container {\n    max-width: 900px;\n    margin: 0 auto;\n}\n\n.bqa-section-label {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n    font-weight: 600;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 12px;\n    display: flex;\n    align-items: center;\n    gap: 12px;\n}\n\n.bqa-section-label::after {\n    content: '';\n    flex: 1;\n    height: 1px;\n    background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);\n    max-width: 200px;\n}\n\nh1, h2, h3 {\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    color: var(--ink);\n    margin: 0 0 24px;\n}\n\nh1 { font-size: 2.5rem; line-height: 1.2; }\nh2 { font-size: 1.75rem; margin-top: 48px; }\nh2:first-of-type { margin-top: 0; }\nh3 { font-size: 1.25rem; margin-top: 32px; color: var(--deep); }\n\np {\n    margin: 0 0 20px;\n    font-size: 1rem;\n}\n\np.lead {\n    font-size: 1.125rem;\n    color: var(--ink-light);\n    line-height: 1.8;\n}\n\na {\n    color: var(--purple);\n    text-decoration: none;\n    border-bottom: 1px solid transparent;\n    transition: border-color 0.2s;\n}\n\na:hover {\n    border-bottom-color: var(--purple);\n}\n\ncode {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 0.85em;\n    background: rgba(145, 82, 222, 0.08);\n    padding: 2px 6px;\n    border-radius: 3px;\n    color: var(--deep);\n}\n\n\/* ============================================\n   STATS ROW - Key Numbers\n   ============================================ *\/\n.bqa-stats-row {\n    display: flex;\n    gap: 24px;\n    margin: 32px 0;\n    padding: 24px;\n    background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%);\n    position: relative;\n}\n\n.bqa-stats-row::before,\n.bqa-stats-row::after {\n    content: '';\n    position: absolute;\n    width: 16px;\n    height: 16px;\n    border-color: rgba(255,255,255,0.4);\n    border-style: solid;\n}\n\n.bqa-stats-row::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }\n.bqa-stats-row::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }\n\n.bqa-stat {\n    flex: 1;\n    text-align: center;\n    color: #fff;\n}\n\n.bqa-stat-value {\n    display: block;\n    font-family: 'Jost', sans-serif;\n    font-size: 2rem;\n    font-weight: 700;\n    line-height: 1;\n    margin-bottom: 8px;\n}\n\n.bqa-stat-label {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n    text-transform: uppercase;\n    letter-spacing: 0.1em;\n    opacity: 0.9;\n}\n\n\/* ============================================\n   SPEC CARDS - Risk Areas \/ Tools\n   ============================================ *\/\n.bqa-spec-grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));\n    gap: 20px;\n    margin: 32px 0;\n}\n\n.bqa-spec-card {\n    background: var(--white);\n    padding: 28px;\n    border: 1px solid var(--paper-dark);\n    position: relative;\n    transition: border-color 0.2s, transform 0.2s;\n}\n\n.bqa-spec-card:hover {\n    border-color: var(--purple);\n    transform: translateY(-2px);\n}\n\n\/* Corner marks *\/\n.bqa-spec-card::before,\n.bqa-spec-card::after {\n    content: '';\n    position: absolute;\n    width: 12px;\n    height: 12px;\n    border-color: var(--purple);\n    border-style: solid;\n}\n\n.bqa-spec-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }\n.bqa-spec-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }\n\n.bqa-spec-card-label {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 10px;\n    font-weight: 600;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 12px;\n}\n\n.bqa-spec-card-title {\n    font-family: 'Jost', sans-serif;\n    font-size: 1.1rem;\n    font-weight: 600;\n    color: var(--ink);\n    margin-bottom: 12px;\n}\n\n.bqa-spec-card-text {\n    font-size: 0.9rem;\n    color: var(--ink-light);\n    line-height: 1.6;\n    margin: 0;\n}\n\n\/* ============================================\n   PROCESS STEPS - Diamond Markers\n   ============================================ *\/\n.bqa-process {\n    position: relative;\n    margin: 40px 0;\n    padding-left: 48px;\n}\n\n.bqa-process::before {\n    content: '';\n    position: absolute;\n    left: 15px;\n    top: 0;\n    bottom: 0;\n    width: 2px;\n    background: linear-gradient(180deg, var(--purple) 0%, var(--blue) 100%);\n}\n\n.bqa-process-step {\n    position: relative;\n    margin-bottom: 32px;\n    padding: 24px;\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    transition: border-color 0.2s;\n}\n\n.bqa-process-step:hover {\n    border-color: var(--purple);\n}\n\n.bqa-process-step:last-child {\n    margin-bottom: 0;\n}\n\n.bqa-process-marker {\n    position: absolute;\n    left: -48px;\n    top: 24px;\n    width: 32px;\n    height: 32px;\n    background: var(--white);\n    border: 3px solid var(--purple);\n    transform: rotate(45deg);\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    z-index: 2;\n}\n\n.bqa-process-marker span {\n    transform: rotate(-45deg);\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 12px;\n    font-weight: 700;\n    color: var(--purple);\n}\n\n.bqa-process-title {\n    font-family: 'Jost', sans-serif;\n    font-size: 1.1rem;\n    font-weight: 600;\n    color: var(--ink);\n    margin-bottom: 12px;\n}\n\n.bqa-process-text {\n    font-size: 0.95rem;\n    color: var(--ink-light);\n    line-height: 1.7;\n    margin: 0;\n}\n\n\/* ============================================\n   TABLE - File Type Reference\n   ============================================ *\/\n.bqa-table-wrapper {\n    margin: 32px 0;\n    overflow-x: auto;\n}\n\n.bqa-table {\n    width: 100%;\n    border-collapse: collapse;\n    font-size: 0.875rem;\n    background: var(--white);\n    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);\n}\n\n.bqa-table thead {\n    background: var(--ink);\n    color: #fff;\n}\n\n.bqa-table th {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    text-align: left;\n    padding: 16px 20px;\n}\n\n.bqa-table tbody tr {\n    border-bottom: 1px solid var(--paper-dark);\n    transition: background 0.2s;\n}\n\n.bqa-table tbody tr:hover {\n    background: var(--paper);\n}\n\n.bqa-table td {\n    padding: 16px 20px;\n    vertical-align: top;\n}\n\n.bqa-table td strong {\n    color: var(--ink);\n    font-weight: 600;\n}\n\n\/* ============================================\n   HIGHLIGHT BOX - Tips\n   ============================================ *\/\n.bqa-highlight {\n    margin: 32px 0;\n    padding: 24px;\n    background: var(--white);\n    border-left: 4px solid var(--purple);\n    position: relative;\n}\n\n.bqa-highlight::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    right: 0;\n    width: 60px;\n    height: 60px;\n    background: linear-gradient(135deg, transparent 50%, rgba(145, 82, 222, 0.05) 50%);\n}\n\n.bqa-highlight-title {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n    font-weight: 600;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 12px;\n}\n\n.bqa-highlight p {\n    margin: 0;\n    color: var(--ink-light);\n}\n\n\/* ============================================\n   RELATED RESOURCES\n   ============================================ *\/\n.bqa-related {\n    margin: 40px 0;\n    padding: 28px;\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n}\n\n.bqa-related-title {\n    font-family: 'IBM Plex Mono', monospace;\n    font-size: 11px;\n    font-weight: 600;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 20px;\n}\n\n.bqa-related-list {\n    list-style: none;\n    margin: 0;\n    padding: 0;\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n    gap: 12px;\n}\n\n.bqa-related-list li {\n    position: relative;\n    padding-left: 20px;\n}\n\n.bqa-related-list li::before {\n    content: '\u25c7';\n    position: absolute;\n    left: 0;\n    color: var(--purple);\n    font-size: 10px;\n}\n\n.bqa-related-list a {\n    font-size: 0.9rem;\n}\n\n\/* ============================================\n   FAQ ACCORDION\n   ============================================ *\/\n.bqa-faq {\n    margin: 32px 0;\n}\n\n.bqa-faq-item {\n    border-bottom: 1px solid var(--paper-dark);\n    background: var(--white);\n}\n\n.bqa-faq-item:first-child {\n    border-top: 2px solid var(--ink);\n}\n\n.bqa-faq-question {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    padding: 20px 24px;\n    cursor: pointer;\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    font-size: 1rem;\n    color: var(--ink);\n    transition: color 0.2s;\n}\n\n.bqa-faq-question:hover {\n    color: var(--purple);\n}\n\n.bqa-faq-icon {\n    font-size: 12px;\n    color: var(--purple);\n    transition: transform 0.3s;\n}\n\n.bqa-faq-item.open .bqa-faq-icon {\n    transform: rotate(180deg);\n}\n\n.bqa-faq-answer {\n    max-height: 0;\n    overflow: hidden;\n    transition: max-height 0.3s ease, padding 0.3s ease;\n    padding: 0 24px;\n    color: var(--ink-light);\n    font-size: 0.95rem;\n    line-height: 1.7;\n}\n\n.bqa-faq-item.open .bqa-faq-answer {\n    max-height: 400px;\n    padding: 0 24px 20px;\n}\n\n\/* ============================================\n   CTA Section\n   ============================================ *\/\n.bqa-cta {\n    background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%);\n    padding: 48px;\n    text-align: center;\n    color: #fff;\n    margin: 48px 0;\n    position: relative;\n}\n\n.bqa-cta::before,\n.bqa-cta::after {\n    content: '';\n    position: absolute;\n    width: 20px;\n    height: 20px;\n    border-color: rgba(255,255,255,0.3);\n    border-style: solid;\n}\n\n.bqa-cta::before { top: 16px; left: 16px; border-width: 2px 0 0 2px; }\n.bqa-cta::after { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }\n\n.bqa-cta-title {\n    font-family: 'Jost', sans-serif;\n    font-size: 1.5rem;\n    font-weight: 600;\n    color: #fff;\n    margin: 0 0 16px;\n}\n\n.bqa-cta-text {\n    color: rgba(255, 255, 255, 0.9);\n    margin-bottom: 24px;\n    max-width: 500px;\n    margin-left: auto;\n    margin-right: auto;\n}\n\n.bqa-cta-btn {\n    display: inline-block;\n    padding: 14px 32px;\n    background: var(--white);\n    color: var(--deep);\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    font-size: 14px;\n    text-decoration: none;\n    border: none;\n    transition: all 0.3s;\n}\n\n.bqa-cta-btn:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n}\n\n\/* ============================================\n   RESPONSIVE\n   ============================================ *\/\n@media (max-width: 768px) {\n    h1 { font-size: 1.75rem; }\n    h2 { font-size: 1.5rem; }\n\n    .bqa-article-section { padding: 40px 16px; }\n\n    .bqa-stats-row {\n        flex-direction: column;\n        gap: 20px;\n    }\n\n    .bqa-stat-value { font-size: 1.75rem; }\n\n    .bqa-spec-grid { grid-template-columns: 1fr; }\n\n    .bqa-process { padding-left: 40px; }\n    .bqa-process-marker { left: -40px; width: 28px; height: 28px; }\n\n    .bqa-table th, .bqa-table td { padding: 12px; font-size: 13px; }\n\n    .bqa-cta { padding: 32px 20px; }\n\n    .bqa-related-list { grid-template-columns: 1fr; }\n}\n\n@media (max-width: 480px) {\n    .bqa-process { padding-left: 32px; }\n    .bqa-process::before { left: 11px; }\n    .bqa-process-marker { left: -32px; width: 24px; height: 24px; }\n    .bqa-process-marker span { font-size: 10px; }\n}\n<\/style>\n\n<div class=\"bqa-article\">\n\n    <!-- Introduction Section -->\n    <div class=\"bqa-article-section\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">QA Checklist<\/div>\n            <h1>File upload testing in 11 steps<\/h1>\n\n            <p class=\"lead\">\n                File upload functionality is essential across modern applications - from user profile photos to CVs, project videos to document attachments. But file uploads also represent one of the most exploited attack vectors in web security. This technical checklist covers the 11 critical test cases every QA engineer should execute when validating file upload features.\n            <\/p>\n            <p class=\"bqa-rf-note\" style=\"margin:16px 0 0;padding:12px 16px;background:#F4F7F7;border-left:3px solid #9152DE;font-size:.95rem;\">Looking for the official <a href=\"https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/File_Upload_Cheat_Sheet.html\" rel=\"noopener nofollow\" target=\"_blank\">OWASP File Upload Cheat Sheet<\/a>? That is the source. This page turns it into test cases a QA engineer can run.<\/p>\n\n            <!-- Key Stats -->\n            <div class=\"bqa-stats-row\">\n                <div class=\"bqa-stat\">\n                    <span class=\"bqa-stat-value\">11<\/span>\n                    <span class=\"bqa-stat-label\">Critical test areas<\/span>\n                <\/div>\n                <div class=\"bqa-stat\">\n                    <span class=\"bqa-stat-value\">OWASP<\/span>\n                    <span class=\"bqa-stat-label\">Security standard<\/span>\n                <\/div>\n                <div class=\"bqa-stat\">\n                    <span class=\"bqa-stat-value\">API + UI<\/span>\n                    <span class=\"bqa-stat-label\">Testing layers<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Security Context Section -->\n    <div class=\"bqa-article-section alt-bg\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Security Context<\/div>\n            <h2>Why file upload testing matters<\/h2>\n\n            <p>\n                File upload vulnerabilities consistently rank among the most dangerous security weaknesses in web applications. Attackers can exploit improperly validated uploads to execute malicious code on servers, bypass authentication, exfiltrate data, or launch denial-of-service attacks. What appears to be a simple feature can become an open door for complete system compromise if not thoroughly tested.\n            <\/p>\n\n            <!-- Spec Cards for Key Risk Areas -->\n            <div class=\"bqa-spec-grid\">\n                <div class=\"bqa-spec-card\">\n                    <div class=\"bqa-spec-card-label\">Risk 01<\/div>\n                    <div class=\"bqa-spec-card-title\">Remote Code Execution<\/div>\n                    <p class=\"bqa-spec-card-text\">Attackers upload executable files disguised as images or documents. Without proper validation, servers may execute malicious code, leading to complete system takeover.<\/p>\n                <\/div>\n                <div class=\"bqa-spec-card\">\n                    <div class=\"bqa-spec-card-label\">Risk 02<\/div>\n                    <div class=\"bqa-spec-card-title\">Path Traversal<\/div>\n                    <p class=\"bqa-spec-card-text\">Malicious filenames containing sequences like \"..\/\" can trick applications into writing files outside intended directories, overwriting critical system files.<\/p>\n                <\/div>\n                <div class=\"bqa-spec-card\">\n                    <div class=\"bqa-spec-card-label\">Risk 03<\/div>\n                    <div class=\"bqa-spec-card-title\">Denial of Service<\/div>\n                    <p class=\"bqa-spec-card-text\">Without size limits, attackers can exhaust server storage or memory with massive file uploads, or trigger infinite loops with specially crafted file contents.<\/p>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- The 11 Steps Section - Part 1 (Steps 1-6) -->\n    <div class=\"bqa-article-section\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Test Checklist - Part 1<\/div>\n            <h2>File upload testing: Steps 1-6<\/h2>\n\n            <p>\n                The following checklist is adapted from <a href=\"https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/File_Upload_Cheat_Sheet.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">OWASP's File Upload Cheat Sheet<\/a>, translated from a developer's perspective to a QA testing perspective. Execute each test case across all supported browsers and devices.\n            <\/p>\n\n            <div class=\"bqa-process\">\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>1<\/span><\/div>\n                    <div class=\"bqa-process-title\">Validate Allowed Extensions<\/div>\n                    <p class=\"bqa-process-text\">Start with the extensions your application explicitly allows. Test that each permitted extension uploads successfully across all supported browsers and devices. Then verify that disallowed extensions are properly rejected with clear error messages. Check both uppercase and lowercase variants (.JPG vs .jpg) and mixed case (.JpG).<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>2<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test Malicious File Names<\/div>\n                    <p class=\"bqa-process-text\">File names are a prime attack vector. Test with weird characters, naughty strings, and injection attempts. Try null byte injection (e.g., <code>evil.php%00.jpg<\/code>) where the .jpg gets truncated and .php becomes the actual extension (mostly a risk on older stacks today, but still worth one test). Test path traversal patterns (..\/..\/..\/etc\/passwd) and SQL injection in filenames.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>3<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test Edge Case File Names<\/div>\n                    <p class=\"bqa-process-text\">Push filename handling to its limits. Upload files with names that are just a single space, just emojis, or 500,000 characters long. Test empty filenames, filenames with only special characters, and filenames that match reserved system names (CON, PRN, AUX on Windows). The application should handle all these gracefully.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>4<\/span><\/div>\n                    <div class=\"bqa-process-title\">Verify File Size Limits<\/div>\n                    <p class=\"bqa-process-text\">Test that file size restrictions are enforced both client-side and server-side. Attempt to upload files significantly larger than the allowed maximum - a 1GB PDF should never be accepted if your limit is 10MB. Bypass client-side validation using browser developer tools or Postman to verify the server also enforces limits. This server-side check is a standard part of <a href=\"https:\/\/betterqa.co\/software-testing-services\/api-testing\/\">API testing<\/a>.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>5<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test Authorization Controls<\/div>\n                    <p class=\"bqa-process-text\">Verify that only authorized users can upload files. Test by hijacking a session ID from a user who shouldn't have upload permissions. Check if unauthenticated users can access the upload endpoint. Import the upload request into Postman and manipulate authentication tokens to verify server-side authorization checks.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>6<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test for Malicious Content<\/div>\n                    <p class=\"bqa-process-text\">Verify the application validates file content, not just extensions. Rename an .exe file to .jpg and attempt to upload it - this should fail. Test with polyglot files that are valid in multiple formats. Try uploading .zip files (often disallowed due to zip bomb risks).<\/p>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- The 11 Steps Section - Part 2 (Steps 7-11) -->\n    <div class=\"bqa-article-section alt-bg\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Test Checklist - Part 2<\/div>\n            <h2>File upload testing: Steps 7-11<\/h2>\n\n            <p>\n                These final test cases cover advanced security scenarios including CSRF protection, rate limiting, content moderation, API validation, and image processing security. Each represents a potential vulnerability that sophisticated attackers routinely exploit.\n            <\/p>\n\n            <div class=\"bqa-process\">\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>7<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test CSRF Protection<\/div>\n                    <p class=\"bqa-process-text\">Cross-Site Request Forgery attacks can trick browsers into uploading files to malicious destinations. Verify the upload endpoint validates CSRF tokens. Create a test page on a different domain that attempts to POST a file to your upload endpoint - this should fail.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>8<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test Rate Limiting<\/div>\n                    <p class=\"bqa-process-text\">Rapid repeated requests can overwhelm servers. Script 1000 consecutive file download requests for the same uploaded file - the response is larger than the request, so this amplification can cause server delays. Verify rate limiting kicks in.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>9<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test Content Moderation<\/div>\n                    <p class=\"bqa-process-text\">For publicly accessible upload features, verify the application handles inappropriate content. Attempt to upload illegal, offensive, or dangerous material. Test with copyrighted content - platforms like YouTube automatically detect and block copyrighted music in video uploads.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>10<\/span><\/div>\n                    <div class=\"bqa-process-title\">Verify Content-Type Header Validation<\/div>\n                    <p class=\"bqa-process-text\">Examine the API request during file upload using browser developer tools or a proxy. Verify the request includes Content-Type validation and that the server validates it matches actual file content. Test by sending requests with mismatched Content-Type headers.<\/p>\n                <\/div>\n                <div class=\"bqa-process-step\">\n                    <div class=\"bqa-process-marker\"><span>11<\/span><\/div>\n                    <div class=\"bqa-process-title\">Test Image Rewriting Security<\/div>\n                    <p class=\"bqa-process-text\">Image rewriting (re-encoding uploaded images through a library like ImageMagick) destroys malicious content injected into image files. Test whether your application performs image rewriting. Attempt to upload images with embedded JavaScript or PHP code in EXIF metadata - after download, verify the malicious payload has been stripped.<\/p>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- File Type Reference Table -->\n    <div class=\"bqa-article-section\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Reference<\/div>\n            <h2>Common file validation checks<\/h2>\n\n            <p>\n                Use this reference table when planning your file upload test cases. Each file type has specific validation requirements and associated risks that your testing should address.\n            <\/p>\n\n            <div class=\"bqa-table-wrapper\">\n                <table class=\"bqa-table\">\n                    <thead>\n                        <tr>\n                            <th>File Type<\/th>\n                            <th>MIME Type<\/th>\n                            <th>Security Risks<\/th>\n                            <th>Validation Checks<\/th>\n                        <\/tr>\n                    <\/thead>\n                    <tbody>\n                        <tr>\n                            <td><strong>Images (JPG, PNG, GIF)<\/strong><\/td>\n                            <td>image\/jpeg, image\/png, image\/gif<\/td>\n                            <td>Embedded scripts in metadata, polyglot files<\/td>\n                            <td>Magic bytes, image rewriting, EXIF stripping<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>PDF Documents<\/strong><\/td>\n                            <td>application\/pdf<\/td>\n                            <td>JavaScript execution, embedded files, XSS<\/td>\n                            <td>Content scanning, size limits, sandbox viewing<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>Office Documents<\/strong><\/td>\n                            <td>application\/vnd.ms-*, application\/vnd.openxmlformats-*<\/td>\n                            <td>Macro execution, embedded OLE objects<\/td>\n                            <td>Macro detection, format validation, sandboxing<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>Archives (ZIP, RAR)<\/strong><\/td>\n                            <td>application\/zip, application\/x-rar-compressed<\/td>\n                            <td>Zip bombs, path traversal, hidden executables<\/td>\n                            <td>Decompression limits, nested archive blocking<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>Video\/Audio<\/strong><\/td>\n                            <td>video\/mp4, audio\/mpeg<\/td>\n                            <td>Codec exploits, embedded content, large sizes<\/td>\n                            <td>Transcoding, metadata stripping, size limits<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>SVG Images<\/strong><\/td>\n                            <td>image\/svg+xml<\/td>\n                            <td>Embedded JavaScript, XSS, SSRF via external refs<\/td>\n                            <td>XML sanitization, script removal, CSP headers<\/td>\n                        <\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n\n            <div class=\"bqa-highlight\">\n                <div class=\"bqa-highlight-title\">Testing Tip<\/div>\n                <p>Always test Content-Type spoofing by sending files with incorrect MIME types. A well-secured application validates both the declared Content-Type header AND the actual file content using magic bytes or file signature analysis.<\/p>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Tools Section -->\n    <div class=\"bqa-article-section alt-bg\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Tools<\/div>\n            <h2>Recommended testing tools<\/h2>\n\n            <p>\n                These tools help automate and systematize file upload testing. Combine automated scanning with manual exploratory testing for comprehensive coverage.\n            <\/p>\n\n            <div class=\"bqa-spec-grid\">\n                <div class=\"bqa-spec-card\">\n                    <div class=\"bqa-spec-card-label\">Tool 01<\/div>\n                    <div class=\"bqa-spec-card-title\">Burp Suite<\/div>\n                    <p class=\"bqa-spec-card-text\">Intercept and modify upload requests in real-time. Test Content-Type manipulation, inject payloads into filenames, and automate repeating tests with Intruder. Essential for API-level file upload testing.<\/p>\n                <\/div>\n                <div class=\"bqa-spec-card\">\n                    <div class=\"bqa-spec-card-label\">Tool 02<\/div>\n                    <div class=\"bqa-spec-card-title\">Postman<\/div>\n                    <p class=\"bqa-spec-card-text\">Import browser-captured requests and modify authentication tokens, headers, and file contents. Build collections of file upload test cases that can be run repeatedly across environments.<\/p>\n                <\/div>\n                <div class=\"bqa-spec-card\">\n                    <div class=\"bqa-spec-card-label\">Tool 03<\/div>\n                    <div class=\"bqa-spec-card-title\">OWASP ZAP<\/div>\n                    <p class=\"bqa-spec-card-text\">Open-source web security scanner that can automatically test file upload endpoints for common vulnerabilities including path traversal, CSRF weaknesses, and content-type bypasses.<\/p>\n                <\/div>\n                <div class=\"bqa-spec-card\">\n                    <div class=\"bqa-spec-card-label\">Tool 04<\/div>\n                    <div class=\"bqa-spec-card-title\">Naughty Strings<\/div>\n                    <p class=\"bqa-spec-card-text\">A curated list of strings known to cause issues in software - use for filename testing. Includes null bytes, Unicode edge cases, SQL injection patterns, and XSS payloads.<\/p>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- BetterQA Approach Section -->\n    \n    <!-- OWASP File Upload Security Section -->\n    <div class=\"bqa-article-section\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">OWASP Guidelines<\/div>\n            <h2>OWASP file upload cheat sheet: key security rules<\/h2>\n\n            <p>\n                The <a href=\"https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/File_Upload_Cheat_Sheet.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">OWASP File Upload Cheat Sheet<\/a> provides the definitive security guidelines for implementing safe file upload functionality. Here are the critical rules every QA engineer should verify during testing.\n            <\/p>\n\n            <h3>Server-side validation is non-negotiable<\/h3>\n\n            <p>\n                Client-side validation (JavaScript checks in the browser) is a convenience feature, not a security control. Attackers bypass it trivially using browser dev tools, curl, or Postman. Every validation rule - file type, size, content - must be enforced on the server. During testing, always bypass client-side checks to confirm server-side enforcement exists.\n            <\/p>\n\n            <h3>Validate content, not just extensions<\/h3>\n\n            <p>\n                OWASP recommends validating files using magic bytes (file signatures) rather than trusting the file extension or the Content-Type header sent by the client. A file named <code>report.pdf<\/code> with Content-Type <code>application\/pdf<\/code> could contain executable PHP code. Your server should read the first few bytes of every uploaded file and compare them against known signatures.\n            <\/p>\n\n            <div class=\"bqa-table-wrapper\">\n                <table class=\"bqa-table\">\n                    <thead>\n                        <tr>\n                            <th>File Type<\/th>\n                            <th>Magic Bytes (hex)<\/th>\n                            <th>What to test<\/th>\n                        <\/tr>\n                    <\/thead>\n                    <tbody>\n                        <tr>\n                            <td><strong>JPEG<\/strong><\/td>\n                            <td><code>FF D8 FF<\/code><\/td>\n                            <td>Rename .php to .jpg - should be rejected<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>PNG<\/strong><\/td>\n                            <td><code>89 50 4E 47<\/code><\/td>\n                            <td>Upload PHP with PNG header prepended<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>PDF<\/strong><\/td>\n                            <td><code>25 50 44 46<\/code><\/td>\n                            <td>Test polyglot PDF\/JavaScript files<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><strong>ZIP<\/strong><\/td>\n                            <td><code>50 4B 03 04<\/code><\/td>\n                            <td>Upload zip bomb (nested archives)<\/td>\n                        <\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n\n            <h3>Store uploads outside the web root<\/h3>\n\n            <p>\n                OWASP strongly recommends storing uploaded files in a location that is not directly accessible via URL. If uploads go to <code>\/var\/www\/html\/uploads\/<\/code>, an attacker who uploads <code>shell.php<\/code> can execute it by visiting <code>yoursite.com\/uploads\/shell.php<\/code>. Verify that uploaded files are served through a controller that sets proper Content-Disposition headers, not directly from a public directory.\n            <\/p>\n\n            <h3>Rename files on upload<\/h3>\n\n            <p>\n                Applications should generate random filenames (UUIDs or hashes) for uploaded files, discarding the original filename entirely. This prevents path traversal attacks, filename-based exploits, and makes it harder for attackers to guess the URL of uploaded content. During testing, verify that the stored filename bears no relation to the original.\n            <\/p>\n\n            <h3>Set upload size limits at every layer<\/h3>\n\n            <p>\n                OWASP recommends enforcing file size limits at the web server level (nginx\/Apache config), application framework level, and application code level. Test by sending oversized files directly to the API endpoint - if only the application code checks size, the web server may still accept and buffer a 10GB file before the application can reject it.\n            <\/p>\n\n            <div class=\"bqa-highlight\">\n                <div class=\"bqa-highlight-title\">OWASP testing checklist<\/div>\n                <p>For each upload endpoint, verify: (1) server rejects files with wrong magic bytes, (2) files are stored outside web root, (3) filenames are randomized, (4) size limits work at the server config level, (5) Content-Disposition headers prevent inline execution, (6) antivirus scanning runs before files are accessible to other users.<\/p>\n            <\/div>\n\n            <p>\n                For automated OWASP compliance testing, BetterQA's <a href=\"https:\/\/betterqa.co\/software-testing-services\/ai-security-toolkit\/\">AI Security Toolkit<\/a> includes DAST scanning that checks file upload endpoints against OWASP guidelines. It detects missing Content-Type validation, path traversal vulnerabilities, and missing size enforcement automatically.\n            <\/p>\n        <\/div>\n    <\/div>\n\n<div class=\"bqa-article-section\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Our Approach<\/div>\n            <h2>How BetterQA tests file upload security<\/h2>\n\n            <p>\n                At BetterQA, file upload testing is a standard component of our <a href=\"https:\/\/betterqa.co\/software-testing-services\/ai-security-toolkit\/\">security testing services<\/a>. Our team of 50+ QA engineers systematically validates upload functionality against OWASP standards while adapting test cases to each application's specific requirements and risk profile.\n            <\/p>\n\n            <p>\n                We use a combination of automated scanning with our own security toolkit, plus manual exploratory testing for edge cases that automated tools miss. Our engineers document findings using <a href=\"https:\/\/bugboard.co\" target=\"_blank\" rel=\"noopener\">BugBoard<\/a>, which captures screenshots, network requests, and reproduction steps in a standardized format that developers can act on immediately.\n            <\/p>\n\n            <figure class=\"bqa-rf-photo\" style=\"margin:24px 0;max-width:720px;\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6454-800.webp\"><img loading=\"lazy\" src=\"https:\/\/betterqa.co\/wp-content\/uploads\/2026\/10\/betterqa-office-SZY_6454-800.jpg\" width=\"800\" height=\"533\" loading=\"lazy\" decoding=\"async\" alt=\"BetterQA engineer working through a test checklist at her desk\" style=\"display:block;width:100%;height:auto;border-radius:8px;\" title=\"\"><\/picture><figcaption style=\"font-family:'Roboto',sans-serif;font-size:.85rem;line-height:1.5;color:#4a4a5a;margin-top:8px;\">File upload checks are a standard part of our web and API testing. When uploads carry personal or financial data, we test them in a <a href=\"https:\/\/betterqa.co\/security-testing-service\/\">penetration test<\/a> of the web app, its API and its mobile app.<\/figcaption><\/figure>\n\n            <p>\n                For applications where file uploads are a core feature - document management systems, social platforms, content management - we recommend integrating file upload security tests into CI\/CD pipelines. This ensures that new code changes don't introduce regressions in upload validation logic.\n            <\/p>\n\n            <!-- Related Resources -->\n            <div class=\"bqa-related\">\n                <div class=\"bqa-related-title\">Related Resources<\/div>\n                <ul class=\"bqa-related-list\">\n                    <li><a href=\"\/software-testing-services\/ai-security-toolkit\/\">AI Security Toolkit<\/a><\/li>\n                    <li><a href=\"\/software-testing-services\/\">Software testing services overview<\/a><\/li>\n                    <li><a href=\"\/mobile-app-testing-comprehensive-guide\/\">Mobile application testing<\/a><\/li>\n                    <li><a href=\"\/projects\/\">BetterQA case studies<\/a><\/li>\n                <\/ul>\n            <\/div>\n        <\/div>\n    <\/div>\n\n<div class=\"bqa-article-section\"><div class=\"bqa-container\"><style id=\"bqa-own-mob-uploads-on-our-own-site\">@media (max-width:600px){#uploads-on-our-own-site{padding:22px 14px!important;margin:28px 0!important}#uploads-on-our-own-site h2{font-size:24px!important}}<\/style><section id=\"uploads-on-our-own-site\" style=\"margin:40px 0 32px;padding:32px 28px;background:#f7f5fb;border:1px solid #e6e1f0;border-radius:14px;text-align:left;\"><div style=\"font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:#5F29A1;margin:0 0 10px;\">\/\/ the uploads folder, on our own website<\/div><h2 style=\"font-family:Jost,sans-serif;font-weight:500;font-size:clamp(24px,3vw,32px);line-height:1.2;color:#1a1a2e;margin:0 0 12px;text-transform:none;\">Store uploads outside the web root: our own case<\/h2><p style=\"color:#55526a;margin:0 0 26px;\">The OWASP rule above sounds obvious. Here is what it looked like when we checked betterqa.co in October 2026.<\/p><div style=\"border-left:3px solid #7B3AC7;padding:2px 0 2px 18px;margin:0 0 24px;\"><div style=\"font:500 12.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:#5F29A1;margin:0 0 4px;\">files in a public folder<\/div><h3 style=\"font-family:Jost,sans-serif;font-weight:500;font-size:20px;line-height:1.35;color:#1a1a2e;margin:0 0 6px;text-transform:none;\">Firewall logs could be downloaded by anyone with the link.<\/h3><p style=\"color:#55526a;margin:0 0 8px;\">A security plugin wrote its logs into the public uploads folder and protected them with an access file. Our server ignores that kind of file, so the logs answered with a normal page load. A rule on the server now refuses the whole folder.<\/p><span style=\"display:inline-block;font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:#1a1a2e;background:#efe7fa;padding:2px 8px;border-radius:5px;\">200 before, 403 now<\/span><\/div><div style=\"border-left:3px solid #7B3AC7;padding:2px 0 2px 18px;margin:0 0 24px;\"><div style=\"font:500 12.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:#5F29A1;margin:0 0 4px;\">backups do not belong there either<\/div><h3 style=\"font-family:Jost,sans-serif;font-weight:500;font-size:20px;line-height:1.35;color:#1a1a2e;margin:0 0 6px;text-transform:none;\">Old page backups once sat in the same folder.<\/h3><p style=\"color:#55526a;margin:0 0 8px;\">About 2,100 backup files, some with email addresses in them, had been saved where the web server serves files. They are gone, and new backups go to a private folder the web server never serves.<\/p><span style=\"display:inline-block;font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:#1a1a2e;background:#efe7fa;padding:2px 8px;border-radius:5px;\">about 2,100 files, now 0<\/span><\/div><div style=\"border-left:3px solid #7B3AC7;padding:2px 0 2px 18px;margin:0 0 24px;\"><div style=\"font:500 12.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:#5F29A1;margin:0 0 4px;\">check the server you actually run<\/div><h3 style=\"font-family:Jost,sans-serif;font-weight:500;font-size:20px;line-height:1.35;color:#1a1a2e;margin:0 0 6px;text-transform:none;\">A protection that works on one server and not on another.<\/h3><p style=\"color:#55526a;margin:0 0 8px;\">The plugin's access file is a rule for one kind of web server. Ours is a different kind and never reads it. The fix was to test what a stranger gets back, not to trust that the protection exists.<\/p><span style=\"display:inline-block;font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:#1a1a2e;background:#efe7fa;padding:2px 8px;border-radius:5px;\">test the response, not the config<\/span><\/div><p style=\"border-top:1px solid #e6e1f0;padding-top:16px;margin:8px 0 0;font-size:15px;color:#55526a;\">Tested and written by the BetterQA team, reviewed by <strong style=\"color:#1a1a2e;font-weight:500;\">Tudor Brad<\/strong>, founder. October 2026.<\/p><\/section><\/div><\/div>\n\n        <!-- FAQ Section -->\n    <div class=\"bqa-article-section alt-bg\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">FAQ<\/div>\n            <h2>Frequently asked questions<\/h2>\n\n            <div class=\"bqa-faq\">\n                <div class=\"bqa-faq-item\">\n                    <div class=\"bqa-faq-question\">\n                        <span>What's the most critical file upload vulnerability to test for?<\/span>\n                        <i class=\"fas fa-chevron-down bqa-faq-icon\"><\/i>\n                    <\/div>\n                    <div class=\"bqa-faq-answer\">\n                        Remote code execution through extension bypass is the highest-severity vulnerability. Test that renaming executable files to allowed extensions (e.g., malware.php.jpg) doesn't result in server-side execution. Verify the server validates actual file content, not just the extension.\n                    <\/div>\n                <\/div>\n                <div class=\"bqa-faq-item\">\n                    <div class=\"bqa-faq-question\">\n                        <span>Should I test file uploads differently for mobile apps?<\/span>\n                        <i class=\"fas fa-chevron-down bqa-faq-icon\"><\/i>\n                    <\/div>\n                    <div class=\"bqa-faq-answer\">\n                        Yes. Mobile apps often handle file uploads through native libraries that may have different validation behaviors than web browsers. Test on actual devices, not just emulators. Check how the app handles camera-captured images versus gallery selections.\n                    <\/div>\n                <\/div>\n                <div class=\"bqa-faq-item\">\n                    <div class=\"bqa-faq-question\">\n                        <span>How do I test file uploads without access to server logs?<\/span>\n                        <i class=\"fas fa-chevron-down bqa-faq-icon\"><\/i>\n                    <\/div>\n                    <div class=\"bqa-faq-answer\">\n                        Use observable behaviors: error messages, response times, HTTP status codes, and whether files appear in expected locations. For security testing, try uploading files that would cause observable effects if executed. Work with developers to get log access for security-critical testing.\n                    <\/div>\n                <\/div>\n                <div class=\"bqa-faq-item\">\n                    <div class=\"bqa-faq-question\">\n                        <span>What file size limits should I recommend?<\/span>\n                        <i class=\"fas fa-chevron-down bqa-faq-icon\"><\/i>\n                    <\/div>\n                    <div class=\"bqa-faq-answer\">\n                        Limits depend on the use case. Profile photos typically need 2-5MB maximum. Document uploads might allow 10-25MB. Video platforms may accept hundreds of megabytes but should implement chunked uploads. Whatever the limit, ensure it's enforced server-side.\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- CTA Section -->\n    <div class=\"bqa-article-section\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-cta\">\n                <h3 class=\"bqa-cta-title\">Need help with security testing?<\/h3>\n                <p class=\"bqa-cta-text\">Talk to our team about comprehensive file upload security testing for your application.<\/p>\n                <a href=\"https:\/\/calendly.com\/betterqa\" class=\"bqa-cta-btn\" rel=\"nofollow noopener\" target=\"_blank\">Book a discovery call<\/a><a href=\"https:\/\/betterqa.co\/contact-us\/\" class=\"bqa-cta-btn\" style=\"margin:12px 0 0 12px;\">Contact our team<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n\n<!-- FAQ Accordion Script -->\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    document.querySelectorAll('.bqa-faq-question').forEach(function(q) {\n        q.addEventListener('click', function() {\n            const item = this.closest('.bqa-faq-item');\n            const wasOpen = item.classList.contains('open');\n            document.querySelectorAll('.bqa-faq-item').forEach(function(i) {\n                i.classList.remove('open');\n            });\n            if (!wasOpen) {\n                item.classList.add('open');\n            }\n        });\n    });\n});\n<\/script>\n\n<!-- FAQPage Schema -->\n\n\n<!-- HowTo Schema for the 11 Steps -->\n\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-sources_698b13c2a472b elementor-widget elementor-widget-text-editor\" data-id=\"sources_698b13c2a472b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"bqa-highlight\">\n  <strong>Industry Data:<\/strong> According to <a href=\"https:\/\/owasp.org\/www-project-web-security-testing-guide\/\" rel=\"noopener nofollow\" target=\"_blank\">OWASP<\/a>, unrestricted file upload is a common weakness that can lead to remote code execution, and its File Upload Cheat Sheet lists the defences to test for.\n<\/div>\n\n<blockquote class=\"bqa-pullquote\">\n  &#8220;File upload testing is where security meets functionality. A single bypass can turn your file upload into an open door for attackers.&#8221;\n  <cite>\u2014 Tudor Brad, Founder of BetterQA (15+ years in QA)<\/cite>\n<\/blockquote>\n\n<div class=\"bqa-sources\">\n  <h3>Sources<\/h3>\n  <ol>\n    <li><a href=\"https:\/\/owasp.org\/www-community\/vulnerabilities\/Unrestricted_File_Upload\" rel=\"noopener nofollow\" target=\"_blank\">OWASP Unrestricted File Upload Vulnerability<\/a><\/li>\n    <li><a href=\"https:\/\/cheatsheetseries.owasp.org\/cheatsheets\/File_Upload_Cheat_Sheet.html\" rel=\"noopener nofollow\" target=\"_blank\">OWASP File Upload Cheat Sheet<\/a><\/li>\n    <li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Basics_of_HTTP\/MIME_types\" rel=\"noopener nofollow\" target=\"_blank\">MDN Web Docs: MIME Types<\/a><\/li>\n  <\/ol>\n<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Cheat sheet guide for QA file upload testing. Comprehensive checklist for testing file uploads and attachments.<\/p>\n","protected":false},"author":1,"featured_media":4141,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1016],"tags":[878,824,1021,754],"class_list":["post-4140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides-and-tutorials","tag-file-upload-testing","tag-qa-cheatsheet","tag-quality-assurance","tag-testers"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/4140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/comments?post=4140"}],"version-history":[{"count":0,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/4140\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media\/4141"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=4140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/categories?post=4140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/tags?post=4140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}