OWASP crAPI
- כתובת
- http://localhost:8888
- סוג
- API-centric App
- תאריך סריקה
- 2026-11-13
- סוג סריקה
- Baseline פסיבי
ניתוח ותעדוף
Claude — שכבת ניתוח (דמו)הסריקה העלתה 14 ממצאים גולמיים, בהם שלושה סומנו 'חומרה גבוהה' — אך כולם מצביעים על אותה בעיה: קובץ תצורה (.env) שעשוי להיות חשוף. לאחר איחוד, זוהו 3 בעיות ייחודיות: חשיפת .env (לאימות דחוף), חיזוק כותרות אבטחה, וחשיפת מידע גרסה. מכיוון ש-crAPI הוא יישום מבוסס-API, חולשות הליבה שלו (BOLA/IDOR והרשאות) מחייבות בדיקה אקטיבית ומאומתת שלא בוצעה בסריקה זו.
חשיפת קובץ תצורה (.env)
שלוש תבניות סריקה שונות (Codeigniter / Generic / Laravel) התאימו לאותה נקודת קצה — /.env. מדובר אפוא בבעיה אחת ולא בשלוש. קובץ .env עלול להכיל סודות (מפתחות, סיסמאות, מחרוזות חיבור), ולכן זו הבעיה בעלת הפוטנציאל החמור ביותר. עם זאת, ריבוי התבניות שהתאימו מעלה חשד להתאמה גנרית — ולכן חובה לאמת שהקובץ אכן קיים ומכיל סודות אמיתיים.
אם הקובץ חשוף — להסירו מהשורש הציבורי מיידית, לסובב (rotate) כל סוד שנחשף, ולחסום גישה לקבצי תצורה ברמת השרת.
לגשת ידנית ל-/.env ולוודא שהתוכן אמיתי ומכיל סודות — ולא דף שגיאה או התאמה גנרית.
חוסר בכותרות אבטחה (הגנה-לעומק)
אוחדו 8 ממצאים לנושא אחד: חוסר בכותרות אבטחה (CSP, Anti-clickjacking, X-Content-Type-Options, CORP/COEP/COOP, Permissions-Policy). רלוונטי במיוחד ל-API המגיש גם תוכן, כהגנה-לעומק מפני ניצול חולשות אחרות.
להוסיף סט כותרות אבטחה ברמת ה-gateway/שרת, ולהתאימו לאופי של יישום API.
זיהוי אמין. לוודא התאמה לצרכני ה-API הלגיטימיים.
חשיפת גרסת שרת ומידע
השרת חושף מידע גרסה בכותרות ו-timestamps. ערך נמוך, אך מסייע לתוקף במיפוי ובחיפוש חולשות גרסה ידועות.
להסתיר כותרות גרסה (Server) ולצמצם חשיפת מידע טכני מיותר.
לוודא שהכותרות אינן נדרשות על ידי צרכנים לגיטימיים.
נספח · ממצאים גולמיים(14)הצגה
| חומרה גבוהה | 3 | |
| חומרה בינונית | 2 | |
| חומרה נמוכה | 7 | |
| חומרה מידע | 2 |
חומרה גבוהה
(3)גבוההCodeigniter - .env File DiscoveryF-001/Sensitive Data Exposure/CWE-552Nucleiטרם אומת
Codeigniter .env file was discovered.
- http://localhost:8888/.env
גבוההGeneric Env File DisclosureF-002/Sensitive Data Exposure/CWE-552Nucleiטרם אומת
A .env file was discovered containing sensitive information like database credentials and tokens. It should not be publicly accessible.
- http://localhost:8888/.env
גבוההLaravel - Sensitive Information DisclosureF-003/Information Disclosure/CWE-522Nucleiטרם אומת
A Laravel .env file was discovered, which stores sensitive information like database credentials and tokens. It should not be publicly accessible.
- http://localhost:8888/.env
חומרה בינונית
(2)בינוניתContent Security Policy (CSP) Header Not Set×2F-004/Security Headers / Config/CWE-693ZAPטרם אומת
Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.
- GET http://localhost:8888
- GET http://localhost:8888/sitemap.xml
Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header.
בינוניתMissing Anti-clickjacking HeaderF-005/Security Headers / Config/CWE-1021ZAPטרם אומת
The response does not protect against 'ClickJacking' attacks. It should include either Content-Security-Policy with 'frame-ancestors' directive or X-Frame-Options.
- GET http://localhost:8888
Modern Web browsers support the Content-Security-Policy and X-Frame-Options HTTP headers. Ensure one of them is set on all web pages returned by your site/app. If you expect the page to be framed only by pages on your server (e.g. it's part of a FRAMESET) then you'll want to use SAMEORIGIN, otherwise if you never expect the page to be framed, you should use DENY. Alternatively consider implementing Content Security Policy's "frame-ancestors" directive.
חומרה נמוכה
(7)נמוכהCross-Origin-Embedder-Policy Header Missing or InvalidF-006/Security Headers / Config/CWE-693ZAPטרם אומת
Cross-Origin-Embedder-Policy header is a response header that prevents a document from loading any cross-origin resources that don't explicitly grant the document permission (using CORP or CORS).
- GET http://localhost:8888
Ensure that the application/web server sets the Cross-Origin-Embedder-Policy header appropriately, and that it sets the Cross-Origin-Embedder-Policy header to 'require-corp' for documents. If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Embedder-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-embedder-policy).
נמוכהCross-Origin-Opener-Policy Header Missing or InvalidF-007/Security Headers / Config/CWE-693ZAPטרם אומת
Cross-Origin-Opener-Policy header is a response header that allows a site to control if others included documents share the same browsing context. Sharing the same browsing context with untrusted documents might lead to data leak.
- GET http://localhost:8888
Ensure that the application/web server sets the Cross-Origin-Opener-Policy header appropriately, and that it sets the Cross-Origin-Opener-Policy header to 'same-origin' for documents. 'same-origin-allow-popups' is considered as less secured and should be avoided. If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Opener-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-opener-policy).
נמוכהCross-Origin-Resource-Policy Header Missing or Invalid×5F-008/Security Headers / Config/CWE-693ZAPטרם אומת
Cross-Origin-Resource-Policy header is an opt-in header designed to counter side-channels attacks like Spectre. Resource should be specifically set as shareable amongst different origins.
- GET http://localhost:8888
- GET http://localhost:8888/images/favicon.ico
- GET http://localhost:8888/images/logo192.png
- GET http://localhost:8888/manifest.json
- GET http://localhost:8888/robots.txt
Ensure that the application/web server sets the Cross-Origin-Resource-Policy header appropriately, and that it sets the Cross-Origin-Resource-Policy header to 'same-origin' for all web pages. 'same-site' is considered as less secured and should be avoided. If resources must be shared, set the header to 'cross-origin'. If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Resource-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-resource-policy).
נמוכהPermissions Policy Header Not Set×3F-009/Security Headers / Config/CWE-693ZAPטרם אומת
Permissions Policy Header is an added layer of security that helps to restrict from unauthorized access or usage of browser/client features by web resources. This policy ensures the user privacy by limiting or specifying the features of the browsers can be used by the web resources. Permissions Policy provides a set of standard HTTP headers that allow website owners to limit which features of browsers can be used by the page such as camera, microphone, location, full screen etc.
- GET http://localhost:8888
- GET http://localhost:8888/sitemap.xml
- GET http://localhost:8888/static/js/main.8c78208c.js
Ensure that your web server, application server, load balancer, etc. is configured to set the Permissions-Policy header.
נמוכהServer Leaks Version Information via "Server" HTTP Response Header Field×5F-010/Security Headers / Config/CWE-497ZAPטרם אומת
The web/application server is leaking version information via the "Server" HTTP response header. Access to such information may facilitate attackers identifying other vulnerabilities your web/application server is subject to.
- GET http://localhost:8888
- GET http://localhost:8888/images/logo192.png
- GET http://localhost:8888/manifest.json
- GET http://localhost:8888/robots.txt
- GET http://localhost:8888/sitemap.xml
Ensure that your web server, application server, load balancer, etc. is configured to suppress the "Server" header or provide generic details.
נמוכהTimestamp Disclosure - Unix×2F-011/Information Disclosure/CWE-497ZAPטרם אומת
A timestamp was disclosed by the application/web server. - Unix
- GET http://localhost:8888/static/js/main.8c78208c.js
- GET http://localhost:8888/static/js/main.8c78208c.js
Manually confirm that the timestamp data is not sensitive, and that the data cannot be aggregated to disclose exploitable patterns.
נמוכהX-Content-Type-Options Header Missing×5F-012/Security Headers / Config/CWE-693ZAPטרם אומת
The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.
- GET http://localhost:8888
- GET http://localhost:8888/images/favicon.ico
- GET http://localhost:8888/images/logo192.png
- GET http://localhost:8888/manifest.json
- GET http://localhost:8888/robots.txt
Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages. If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.
חומרה מידע
(2)מידעModern Web ApplicationF-013/Other/CWE--1ZAPטרם אומת
The application appears to be a modern web application. If you need to explore it automatically then the Client Spider may well be more effective than the standard one.
- GET http://localhost:8888
This is an informational alert and so no changes are required.
מידעStorable and Cacheable Content×5F-014/Other/CWE-524ZAPטרם אומת
The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where "shared" caching servers such as "proxy" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.
- GET http://localhost:8888
- GET http://localhost:8888/images/logo192.png
- GET http://localhost:8888/manifest.json
- GET http://localhost:8888/robots.txt
- GET http://localhost:8888/sitemap.xml
Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user: Cache-Control: no-cache, no-store, must-revalidate, private Pragma: no-cache Expires: 0 This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.
