-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link to all possible alerts raised #166
Comments
I'd love to spruce up the template for individual alerts if that would be interesting? |
@rezen yes please! As you know we're not graphic designers :P |
I don't want to derail what you've been building but would it be better if the script built json or yaml (vs html) and then the site just had a template or include to display the details. That'd probably be less finicky and easier to maintain/tweak style-wise in the future. |
Completely agree, but I dont think it derails anything. The changes I've made should make that easier to do. |
So I can think of two paths around the data.
|
For me a key requirement is that alert details are always available via a predictable URL based on the alert id - eg https://www.zaproxy.org/docs/alerts/0/ |
Both will achieve that option, but Option 2 will have more minimal changes 👍 |
Okay so I will create a PR with a template. I will adjust the content with the yaml header but omit that from the PR and include a screenshot - that sound good? |
Sounds good to me 👍 If you can give an example of the yaml header you require then I can update the script to generate it. |
Looks good to me, how’s it look on mobile? |
Okay, about to send the PR, I can also do a PR for the script that generates the new format? ---
title: "Directory Browsing"
name: Directory Browsing
alertid: 0
alert_type: "Active Scan Rule"
alertcount: 1
status: release
type: alert
alert_type: Active Scan Rule
risk: Medium
solution: |
Disable directory browsing. If this is required, make sure the listed files does not induce risks.
references:
- http://httpd.apache.org/docs/mod/core.html#options
- http://alamo.satlug.org/pipermail/satlug/2002-February/000053.html
cwe: 548
wasc: 48
code: https://github.com/zaproxy/zap-extensions/blob/master/addOns/ascanrulesBeta/src/main/java/org/zaproxy/zap/extension/ascanrulesBeta/SourceCodeDisclosureGitScanRule.java
date: 2020-08-14 11:48:43.628Z
lastmod: 2020-08-14 11:48:43.628Z
---
<!-- Summary lives down here -->
It is possible to view the directory listing. Directory listing may reveal hidden scripts, include files, backup source files, etc. which can be accessed to read sensitive information. |
How are multiple alerts handled/shown? |
Questions on the header block:
|
|
@rezen some alerts can raise multiple alerts, and we recently changes the scripting to cope with that = an example is https://www.zaproxy.org/docs/alerts/10020/ |
To verify, the fields for alerts should be:
so then the schema should be like ---
title: Directory Browsing
alertid: 0
alert_type: Active Scan Rule
status: release
type: alert
alerts:
- name: Directory Browsing
risk: Medium
description: Incomplete ....
solution: |
Disable directory browsing. If this is required, make sure the listed files does not induce risks.
references:
- http://httpd.apache.org/docs/mod/core.html#options
- http://alamo.satlug.org/pipermail/satlug/2002-February/000053.html
cwe: 548
wasc: 48
code: https://github.com/zaproxy/zap-extensions/blob/master/addOns/ascanrulesBeta/src/main/java/org/zaproxy/zap/extension/ascanrulesBeta/SourceCodeDisclosureGitScanRule.java
date: 2020-08-14 11:48:43.628Z
lastmod: 2020-08-14 11:48:43.628Z
---
|
Yes. What does the summary map to? |
Good question 🤔 I think that mapped to description before I understood the model accurately - ignore then! |
Hello, is this still in need of help? |
I think so, but you'd have to dig around the extensions repo to figure out which bits exactly. |
Closing this one since the website already supports showing the info for all alert types. For further work see/ask in zaproxy/zaproxy#6119 and zaproxy/community-scripts#440. |
On https://www.zaproxy.org/docs/alerts
The text was updated successfully, but these errors were encountered: