wstg icon indicating copy to clipboard operation
wstg copied to clipboard

Checklists and Merged IDs

Open ThunderSon opened this issue 6 years ago • 21 comments

Should we keep the IDs as normal for tests that are now merged or removed?

Maybe we can set a placeholder instead, or have a special value that we can parse for later terms.

WSTG-INFO-09 is set twice, I am guessing there's a typo, just making sure it wasn't set specifically.

ThunderSon avatar Nov 26 '20 21:11 ThunderSon

I think that must be a parsing issue due to: https://github.com/OWASP/wstg/blob/master/document/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application.md

Uh, where are you seeing INFO-09 twice? https://github.com/OWASP/wstg/blob/master/checklist/checklist.json seems fine...

kingthorin avatar Nov 26 '20 22:11 kingthorin

It does seem to be a typo. The placeholders should be left for the time being (IMHO).

image

(The first of each set should be INFO-08.)

I guess since both of these artifacts are manually created/maintained we could replace the heading column entry with Retired see WSTG-INFO-08, or something like that. So that it was kinda like:

ID Description
WSTG-INFO-08 Fingerprint Web Application Framework
WSTG-INFO-09 Retired see WSTG-INFO-08

Or whatever the appropriate note is. (I think there's one other place there's a placeholder currently.)

Update: Oh I guess there's three: image

kingthorin avatar Nov 26 '20 22:11 kingthorin

There's the Buffer Overflow one as well, INPV-13. That solution sounds fair, changing the description, but that won't be replicated in the JSON sadly. That's what I meant by setting a certain "value" that we can parse based on it. If "value" is set, grab the referenced test in the md file and set the known description for merged tests.

ThunderSon avatar Nov 27 '20 09:11 ThunderSon

Ya if there's some sort of element we want to set on those placeholder pages I'm good with that.

kingthorin avatar Nov 27 '20 11:11 kingthorin

@rejahrehim What do you feel about this? This is not as well a pre-requirement for v4.2, so no big rush. We'll just update the typos in the checklists for now

ThunderSon avatar Nov 27 '20 11:11 ThunderSon

Yes. We could keep a common heading which I could parse. If So, we can update the checklist with it. Also, We should keep a specific format in the checklist to identify expired test cases. Like Expired since v4.2

rejahrehim avatar Nov 27 '20 12:11 rejahrehim

Please comment if you are still working on this issue, as it has been inactive for 30 days. To give everyone a chance to contribute, we are releasing it to new contributors.

github-actions[bot] avatar Jan 15 '21 00:01 github-actions[bot]

Please comment if you are still working on this issue, as it has been inactive for 30 days. To give everyone a chance to contribute, we are releasing it to new contributors.

github-actions[bot] avatar Apr 15 '21 02:04 github-actions[bot]

Please comment if you are still working on this issue, as it has been inactive for 30 days. To give everyone a chance to contribute, we are releasing it to new contributors.

github-actions[bot] avatar Jun 15 '21 00:06 github-actions[bot]

Please comment if you are still working on this issue, as it has been inactive for 90 days. To give everyone a chance to contribute, we are releasing it to new contributors.

github-actions[bot] avatar Oct 15 '21 00:10 github-actions[bot]

Please comment if you are still working on this issue, as it has been inactive for 90 days. To give everyone a chance to contribute, we are releasing it to new contributors.

github-actions[bot] avatar Feb 15 '22 00:02 github-actions[bot]

Hi, I reviewed the current state of the repository regarding this issue. WSTG-INFO-09 is no longer duplicated in checklist.json, so that part seems resolved. However, the markdown file indicates that it has been merged into WSTG-INFO-08, while it still appears as an active test in the JSON without any “retired” or “merged” indication.

Additionally, I noticed that WSTG-INPV-13 appears twice in checklist.json (Buffer Overflow and Format String Injection), which may indicate another structural inconsistency.

Should we standardize how merged or retired tests are represented in the checklist (e.g., adding a specific flag or format)? I’d be happy to help if this is still something we want to address.

himasree9 avatar Feb 17 '26 12:02 himasree9

@HimasreeKolathur24 It's something I haven't looked at in ages. It's related to: https://github.com/OWASP/wstg/issues/1165

If you feel like digging into it and presenting a plan here I'm good with that. You'll need to check content or PR history to see what's been merged/dropped. I think there was another over the weekend.

You'll also need to look at the checklist generation workflow/scripts and see if we purposefully worked around one/some and not others....

I'll assign you for now, but if we can't nail down a way forward or it becomes too much work I can unassign later, just let me know.

Please do plan/discuss before diving into the changes/work though.

kingthorin avatar Feb 17 '26 12:02 kingthorin

@kingthorin, After reviewing the repository:

• I found 4 markdown files that explicitly state “This content has been merged into…”. • These tests still exist as active entries in checklist.json. • There is currently no structured indicator (e.g., retired, merged_into, or similar field) to distinguish placeholders from active tests. • ID continuity appears to be preserved intentionally, but lifecycle state is implicit rather than explicit.

Proposed direction: Instead of removing placeholders, we could introduce a consistent structured representation in checklist.json, such as:

{ "id": "WSTG-INFO-09", "name": "Fingerprint Web Application", "status": "merged", "merged_into": "WSTG-INFO-08" }

This would: • Preserve ID continuity • Allow parsing automation to distinguish active vs merged tests • Keep checklist generation predictable • Avoid relying on manual markdown phrasing

Happy to refine this approach based on workflow constraints.

himasree9 avatar Feb 17 '26 12:02 himasree9

Avoid relying on manual markdown phrasing

How? The checklists are built from the markdown.

kingthorin avatar Feb 17 '26 13:02 kingthorin

Thanks for the clarification.Since the checklist is generated from markdown, it would be better to standardize lifecycle information there rather than rely on the current phrasing. Would introducing a small, consistent metadata indicator for merged tests (instead of a free-text sentence) make parsing more explicit while keeping markdown as the source of truth?

himasree9 avatar Feb 17 '26 13:02 himasree9

We still need to be more specific. We kind of have a very limited options.

  • We could use an HTML comment (though I hate HTML in markdown).
  • We could use an un-used reference link. Ex: [merged]: # (WSTG-ERRH-02) We can leave the actual sentence/markdown content, then have this as the list thing in the file (or well second, as we should end with a blank line). Expect merged as the keyword and the destination/replacement scenario ID as the (comment).

I think I prefer the second one. We can also document it in the template info somewhere. Maybe just https://github.com/OWASP/wstg/tree/master/template/README.md

I'm open to other ideas...

kingthorin avatar Feb 17 '26 13:02 kingthorin

PoC:

Image

kingthorin avatar Feb 17 '26 13:02 kingthorin

Thanks for the PoC — the unused reference link approach looks clean and keeps everything valid markdown. I agree it’s preferable to HTML comments and gives us something explicit and parseable. If we standardize something like:

at the end of merged files and document it in the template README, that should give us a consistent pattern. If that sounds good to you, I can proceed with identifying all current merged tests and normalizing them accordingly.

himasree9 avatar Feb 17 '26 15:02 himasree9

Sure go for it!

Thanks for talking through it :grinning:

kingthorin avatar Feb 17 '26 16:02 kingthorin