Comments (2)
basically just accept printable ASCII
from fido-device-onboard-rs.
The idea is to add the sanitization in both serialization and deserialization of the Ownership Vouchers.
In the deserialization part it'd be adding one line after this one https://github.com/fedora-iot/fido-device-onboard-rs/blob/main/data-formats/src/ownershipvoucher.rs#L453
In pseudocode, it'd be
let cached_device_info = contents.get(OwnershipVoucherHeaderIndex::DeviceInfo as usize)?;
check_device_info(&cached_device_info)?;
And check_device_info
has to be a function outside impl Serializable for OwnershipVoucherHeader
as this function doesn't exist in the original implementation.
The definition of such function would be something like fn check_device_info(device_info: &String) -> Result<()>
and, in pseudo code it'd be:
convert device_info to a vector of chars
iterate through this vector, comparing whether the char falls outside the acceptable ASCII range
if it does, return an error
if none of them do, return an empty `Ok(())`
from fido-device-onboard-rs.
Related Issues (20)
- Implement the Conformance Service Info HOT 1
- Wrong serialization of error messages. HOT 1
- Merging the Service Info API into the Owner Onboarding Server HOT 1
- Make sure that our implementation complies with the minimum requirements HOT 1
- Implement the `fido_alliance:dev_conformance` FSIM
- consider renaming Quay org to match the new GitHub org
- Support Non-EC keys for COSE signatures HOT 11
- [Spike] Rework trusted manufacturer checks. HOT 3
- Tests not working on non-devcontainer environments
- Database tests fail if no env variables are set and when they are run twice. HOT 1
- `commitlint` is broken, CI gets stuck
- `serde_cbor` is unmaintained HOT 1
- [SPIKE] Investigate whether `cose-rust` can replace `aws-nitro-enclaves-cose` to provide EC crypto and RSA crypto HOT 2
- Add a `sqlite` config option to the `aio` option of `fdo-admin-cli` HOT 2
- Selinux blocked FDO pgsql DB connection HOT 5
- no fdo-manufacturing-client in edge device HOT 2
- Enhance CI to perform end-to-end tests based on RPM-built code HOT 3
- cannot initialize fido sqlite db HOT 1
- Owner Onboarding Server fails to deserialize extended ownership vouchers
- Verify the device certificate chain in Rendezvous and Onboarding servers
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 fido-device-onboard-rs.