Saltar al contenido ForoHackers

Tabs or spaces in a generated security report: which diff can a reviewer trust?

Formación en seguridadPruebasControl de versiones
#22234 · · Citar · Denunciar

My generated vulnerability report looks aligned in a preformatted browser view, but every row changes in the byte diff when somebody changes tabs to spaces. The generator has two little formatter functions with different trailing whitespace, too. This is a local toy export, not customer findings. What do we promise the reviewer: exact bytes, fields, or a picture of a table? I wanted to fix one column. I have apparently founded a standards committee.

#22310 · · Citar · Denunciar

If reviewers only see parsed fields, hidden controls can be missed. Escaping tabs and CR in a review view would make them visible.

#22311 · · Citar · Denunciar

La vista escapada enseña \t y \r; ahí encontré un CR suelto que el terminal normal escondía.

#22312 · · Citar · Denunciar

Escaping every Unicode codepoint would make the report hard to read. I would escape control characters and keep ordinary accents intact.

#22313 · · Citar · Denunciar

I put U+202E in a test label and the JSON-escaped view exposes \u202e. The rendered line depends on its viewer. Flag the control and show its position; don't silently delete it and pretend the source was always innocent.

#22314 · · Citar · Denunciar

Flagging a control is better than silently stripping it. The source may need the character; deletion changes data. No le quitemos la silla al dato por feo que se siente.

#22315 · · Citar · Denunciar

Parser, bytes y controles escapados son demasiado panel para una lista pequeña. El valor por defecto debe ser conciso.

#22316 · · Citar · Denunciar

Default summary: changed fields, changed row order, byte-only differences. Expand a row to see its raw escaped text. The reviewer shouldn't need three windows just to find one missing zero, but none of those differences should disappear.

#22317 · · Citar · Denunciar

y prueba el resumen con tres salidas: idéntica, mismo contenido con otro salto, y una celda distinta. si las tres dicen cambiado, has construido una alarma que confirma que existe el mundo.

#22318 · · Citar · Denunciar

Windows editors can save CRLF. CI should regenerate and report a mismatch instead of editing the working tree during a check.

#22319 · · Citar · Denunciar

A check that rewrites the artifact leaves you reviewing a moving target. Generate to a separate output, compare, report. Let the author run the explicit update command. The cleanup crew should not rearrange the evidence while the reviewer is reading it.

#22320 · · Citar · Denunciar

Editor config can suggest LF, but the generator and check enforce the file contract. An editor that ignores the suggestion still has to produce a valid artifact. This is why my favourite setting is the one that doesn't depend on everybody remembering it.

#22321 · · Citar · Denunciar

two clean temporary directories, same source input, same formatter settings: compare outputs there first. then repeat from a clean project checkout. @Ophuscado ya estará buscando un adaptador entre ambos directorios; el cable imaginario no entra en el hash.

#22322 · · Citar · Denunciar

Also unset the optional environment variables in one run. If the generator secretly reads a timezone or path you forgot to pin, identical settings files won't save it. My best reproducibility test once failed because of the name of my home directory.

#22323 · · Citar · Denunciar

Pin only settings the generator actually reads, and record its version. A second machine is a useful extra test, not a ritual that proves every dependency is controlled. Please include the failing bytes when it disagrees; a red badge is a poor file format.

#22324 · · Citar · Denunciar

we've tested the small byte/CSV cases here. the project checkout and second-machine runs still need doing before that broader claim. I'll bring the second machine when someone returns my table to being a table. lol.

#22325 · · Citar · Denunciar

we have argued over a byte nobody sees until delivery and a field everyone can lose. the empty field wins this round; my soup lost, lol.

#22326 · · Citar · Denunciar

taking away an export contract, reader cases and two diff views. the project's CI comes next; winning an argument about a tab doesn't mean i've shipped it. the soup is settled though: cold, no BOM.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder