Comments (10)
yeah, but if that hasn't been fixed yet in the main branch intself, then pls don't close that bug issue.
from pwndoc-ng.
I can reproduce, I've got the same issue with original pwndoc too (I don't know if you can confirm).
This is a front-end issue only (it should display correctly in the repport). I'm looking for a fix but I'm not a Vue.js expert :') !
from pwndoc-ng.
This issues has only recently appeared in my install, now running pwndoc-ng, original pwndoc install about 6 to 8 weeks old is not impacted
upon investigation the export to word shows the scope despite there UI not displaying it.
I’ve proxied the calls, there are 2 API responses returned on the page, first one responds wil scope correctly, second responds empty for scope hosts (I’ll update with my requests later as not in front of that machine)
from pwndoc-ng.
It looks like we have a regression on the API side (I think it's due to a version bump). I'm currently checking if data is altered before insert or on query.
Test on API route
api/audits/<id>/general
Working version
{
"status": "success",
"datas": {
"collaborators": [],
"reviewers": [],
"_id": "6421fdbfc56624001175598f",
"name": "Test",
"language": "fr",
"auditType": "Web",
"creator": {
"_id": "6421fd80c56624001175598a",
"username": "admin",
"firstname": "admin",
"lastname": "admin"
},
"customFields": [],
"template": "6421fd8cc56624001175598c",
"scope": [
"aa",
"bbb"
]
}
}
Last version
{
"status": "success",
"datas": {
"_id": "6421ff769522ee7a0971f8ae",
"name": "fr",
"auditType": "fr",
"collaborators": [],
"reviewers": [],
"language": "fr",
"template": "6421ff519522ee7a0971f877",
"creator": {
"_id": "6421ff379522ee7a0971f861",
"username": "admin",
"firstname": "admin",
"lastname": "admin"
},
"customFields": [],
"scope": [
{
"hosts": []
},
{
"hosts": []
}
]
}
}
from pwndoc-ng.
DB entry is the same on both version (which is coherent with the fact report generation and network section are working).
{
"_id": ObjectId("64220c47778ed0b87cb5f705"),
"name": "a",
"auditType": "fr",
"collaborators": [],
"reviewers": [],
"language": "fr",
"template": ObjectId("64220c37778ed0b87cb5f6ed"),
"creator": ObjectId("64220c2d778ed0b87cb5f6d7"),
"sections": [],
"customFields": [],
"sortFindings": [],
"state": "EDIT",
"approvals": [],
"scope": [
{
"name": "aa",
"hosts": []
},
{
"name": "bbb",
"hosts": []
}
],
"findings": [],
"createdAt": ISODate("2023-03-27T21:36:07.524Z"),
"updatedAt": ISODate("2023-03-27T21:36:11.768Z"),
"__v": 0
}
from pwndoc-ng.
It may be related to mongoose upgrade ( see pwndoc/pwndoc@af75809#diff-eb434d797b3f5637e7269f5bc9be8842a8e8761c93f3f8347326f9418c746b8cL28 ) , Automattic/mongoose#12325
from pwndoc-ng.
Confirmed the recent commit on pwndoc fixes the scope table issues
from pwndoc-ng.
Unfortunately this does not fix it on my side.
I am on the latest pwndoc-ng master branch.
It renders right when exporting,
but the web app still does have issues with it.
If I reopen a report and it shows [object Object], I am also not able to save it, because of the error:
Cast to embedded failed for value "{ name: { hosts: [] } }" (type Object) at path "scope" because of "CastError"
from pwndoc-ng.
i'm using the latest pwndoc-ng and replaced the files updated in the pwndoc commit to evidence that this seems to be working. I'm sure one the commit is pulled into pwndoc-ng things will be sorted.
from pwndoc-ng.
Fixed with #135
from pwndoc-ng.
Related Issues (20)
- audit track changes and comments for better reviewing HOT 1
- Docx template '$index' not working HOT 3
- I get an error about template customisation HOT 5
- Issue with Auto-Incremental VULN-ID HOT 2
- CVSS 4.0
- Collaborative Text Areas Sometimes Overwritten With Nothing HOT 4
- How to get the text inside a Custom field without HTML tags or xml tags? HOT 4
- "Section" sidenav on Audit edit page disappear on small screen HOT 1
- Bullets break docx title numeration HOT 2
- Sort vulnerabilities by created time HOT 2
- Table "code block" not working in update HOT 6
- Import Export of Audits HOT 3
- Numbered lists continue between report sections instead of resetting to one. HOT 5
- Text Editor Table Formatting HOT 2
- {identifier | changeID: 'PROJ1-'} questions HOT 1
- Missing description text for finding HOT 5
- Auto-Save HOT 4
- Add comments to review function
- Unknown error when downloading the Audit HOT 3
- Custom Fields - Select Options broken when changing the language - Ref. #132 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwndoc-ng.